rsync-time-backup icon indicating copy to clipboard operation
rsync-time-backup copied to clipboard

Empty folders?

Open flimofly opened this issue 11 months ago • 2 comments

With the following command, most first-level folders copied to the destination are empty.

bash /home/admin/bin/rsync-time-backup.sh /mnt/apps/ [email protected]:/volume1/TruenasBackup/apps

--recursive is mentioned among the rsync flags (obtained with bash script.sh --rsync-get-flags). However, I have the impression that rsync does not actually register these flags. For instance, when I add --rsync-append-flags "--dry-run" a backup is nevertheless made (even though the output says DRY RUN).

Any ideas what could be going on here?

No issues when I just use rsync -r source/ dest/

flimofly avatar Feb 07 '25 08:02 flimofly

Just for context, this is the same issue as https://github.com/basnijholt/rsync-time-machine.py/issues/112 (in the Python rewrite of this script).

I fixed it in v1.4.0 there. This script can take a similar approach of detecting the flags, see the PR that implemented it here https://github.com/basnijholt/rsync-time-machine.py/pull/113.

basnijholt avatar Feb 08 '25 20:02 basnijholt

For completeness' sake, the problem with the failure to recurse was due to the --one-file-system flag which is on by default, a particularity to TrueNas systems. See more info in this topic:

https://forums.truenas.com/t/rsync-one-file-system-flag-prevents-recursion-into-child-datasets/33483

flimofly avatar Feb 09 '25 06:02 flimofly