In short type the following command as root user to copy /raid6/rsanpshot to another backup server named backupserver2: Let us see some examples for Linux, macOS, FreeBSD and Unix-like systems. -log-file="/var/log/my-rsync-script.log" : Log what rsync command is doing to the /var/log/my-rsync-script.log file.-progress : Show progress during transfer.-numeric-ids : Transfer numeric group and user IDs rather than using user and group names and mapping them at both ends.keep exact replica of your /raid6/rsnapshot directory. -delete : Delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized i.e.-z : Compress file data during the transfer.recurse into directories, and preserve symlinks, file permissions, file modification times, file group, file owner, device files & special files) Rsync -log-file= "/var/log/my-rsync-script.log" -az -H -delete -progress -numeric-ids /path /to / source 192.168.1.5: /path /to /dest / Rsync -az -H -delete -progress -numeric-ids /path /to / source 192.168.1.5: /path /to /dest / # Add a rsync log file # Rsync -az -H -delete -numeric-ids /path /to / source 192.168.1.5: /path /to /dest / # How about adding progress bar? # Rsync -az -H -delete -numeric-ids /path /to / source server2: /path /to /dest / # OR # Let us see how to use rsync to preserve and copy hard Links, softlinks and other data. This is useful for making offsite backups or copy existing backups to a usb hard disk. The rsync command can preserve hard links and make the exact copy of /raid6/rsnapshot/ directory to a remote server using the following syntax. How do I use the rsync command to copy my the entire snapshot directory /raid6/rsnapshot/ (around 4TB) to a remote server for mirroring purpose? The rsnapshot commands makes extensive use of hard links, so if the file doesn’t change, the next snapshot is simply a hard link to the exact same file. I‘m using rsnapshot filesystem snapshot utility to make incremental snapshots of local and remote filesystems for 10 production servers running on RHEL 5.x system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |