Quantcast
Viewing all articles
Browse latest Browse all 6533

Backup using rsync

by Bente Olsen.  

I have updated an existing (FTP) backup of my moodledata directory using rsync with the options from https://docs.moodle.org/31/en/Tools_for_backing_up_server_files#Rsync_in_linux:

rsync -auvtz --delete -e ssh mysshusername@example.com:/my/server/directory /my/backup/directory/

I noticed the -auvtz option, isn't it redundant to include 't', as I read the man rsync it is a part of the '-a' option?

Anyway, I expected it to perform an incremental backup, but rsync started to delete the existing content of the directory tree and then copied all files once again. 

  1. My question is now how to make an incremental backup? - &
  2. BTW, do I have to do this as root or is that not necessary?

Viewing all articles
Browse latest Browse all 6533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>