Codice: Seleziona tutto
$ rsync -nai --log-file rsync.log a/ b/
created directory b
cd+++++++++ ./
>f+++++++++ file1
>f+++++++++ file2
>f+++++++++ file3
$ cat rsync.log
2023/05/03 08:34:17 [6130] building file list
2023/05/03 08:34:17 [6130] created directory b
2023/05/03 08:34:17 [6130] cd+++++++++ ./
2023/05/03 08:34:17 [6130] sent 116 bytes received 57 bytes total size 0
Ad esempio
Codice: Seleziona tutto
SINCRONIZZAZIONE a/ -> b/
Codice: Seleziona tutto
$ rsync -nai --log-file rsync.log a/ b/
SINCRONIZZAZIONE a/ -> b/
created directory b
cd+++++++++ ./
>f+++++++++ file1
>f+++++++++ file2
>f+++++++++ file3
$ cat rsync.log
SINCRONIZZAZIONE a/ -> b/
2023/05/03 08:34:17 [6130] building file list
2023/05/03 08:34:17 [6130] created directory b
2023/05/03 08:34:17 [6130] cd+++++++++ ./
2023/05/03 08:34:17 [6130] sent 116 bytes received 57 bytes total size 0
Codice: Seleziona tutto
$ rsync --template "SINCRONIZZAZIONE {SRC} -> {DEST}\n{OUTPUT}" [...]
rsync: --template: unknown option
rsync error: syntax or usage error (code 1) at main.c(1795) [client=3.2.7]