New answers tagged

0

Another solution may be to change the remote user that establishes the rsync connection using --rsync-path. I posted a complete explanation here: https://unix.stackexchange.com/a/546296/116861


2

From my experience, BTRFS fragments horribly and this can have devastating performance effects on rotating media (HDD). This is amplified by rsync as it copies modified files by creating a temporary file which can be written in very small pieces (due to how the delta alg works). XFS, on the other hand, is an extremely fast and optimized filesystem; recent (...


2

I think @Gordon Davisson is on to the right answer in the comments: there should be not be any spaces in your exclude list. And quotes (single or double) are unnecessary. Ref: https://askubuntu.com/questions/320458/how-to-exclude-multiple-directories-with-rsync#320459 Also: Exclude patterns are always relative to your source directory. So in general you ...


2

As I understand it, you are doing rsync and redirecting STDOUT to a file - something like rsync -avz mydir targetserver: > rsync.log If that's so, then you can simply use the argument --log-file=rsync.log to tell it to write to said logfile directly instead of using STDOUT. So the command line above can instead be rsync --log-file=rsync.log -avz ...


0

There is no way for rsync to distinguish between files that existed before you ever ran rsync and files that were created after, unless you can ensure a modified date. Your best bet would be to use either a different directory for the repo or use filters, include/exclude and include-file/exclude-file. All of these options can be found in the rsync manpage ...


3

You could use a combination of pipes and STDOUT to send the tar file over the network to the remote server. tar zcvf - /your/directory | ssh -i private.key backup-user@backupserver "cat > /backup/file.tgz" The "-" character sends the tar to STDOUT which is piped to ssh and the contents written to a regular file using cat. You'll need to use ssh with a ...


Top 50 recent answers are included