Можно ли установить Clash на сервер без root-доступа?

Это то, что я использую для резервного копирования личных файлов, когда меня не волнует все, охватываемое -a, и я хочу распечатать больше полезной информации.

rsync -rtu --delete --info=del,name,stats2 "/home///" "/run/media///"

Из справочной страницы rsync:

-r, --recursive
This tells rsync to copy directories recursively.

-t, --times
This tells rsync to transfer modification times along with the files and update them on the remote system.

-u, --update
This forces rsync to skip any files which exist on the destination and have a modified time that is newer than the source file. (If an existing destination file has a modification time equal to the source file's, it will be updated if the sizes are different.)

--delete
This tells rsync to delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized.

--info=FLAGS
This option lets you have fine-grained control over the information output you want to see.

Изrsync --info=help

DEL        Mention deletions on the receiving side  
NAME       Mention 1) updated file/dir names, 2) unchanged names  
STATS      Mention statistics at end of run (levels 1-3)

Хотя это менее явно, это, по-видимому, эквивалентно и короче:

rsync -rtuv --delete --info=stats2 "/home///" "/run/media///"

-v, --verbose
A single -v will give you information about what files are being transferred and a brief summary at the end [stats1].

0
24.09.2021, 09:10
0 ответов

Теги

Похожие вопросы