On 06/28/2014 03:48 PM, Hylton Conacher (ZR1HPC) pecked at the keyboard and wrote:
Hi,
As a fairly long time subscriber to this list and running Os 11.2 and looking at making a backup of my home directory to a locally connected NAS device that is owned by the root user. That is part of what will enable me to update to 13.2 on release.
My current user can use 'sudo' but it is the syntax of the rsync command that is stopping me from executing as rsync can apparently be a BEAST if used incorrectly.
I have read and re-read the man pages as well as doing some Google searches and reading Suse Linux Toolbox by Chris Negus. Many of references show copying from a remote host or using a remote daemon. Since I am doing it all locally I hope the list can help i.e. I am at the terminal on the machine that holds the information to be backed up and also has the Drobo is connected.
rsync [options] source dest I assume the 'source' mentioned is what I want to backup and the dest is
My reading has given me that the command reads: the location I want the backup?
My command so far is: $> sudo rsync -avPh /home root@Umalusi:/drobo/backup-'date +%A'/
You will need a "/" at the end of the source and destination for a recursive copy to be made. I use the following to copy only certain directories from my home folder to the backup location: ********** echo "HomeVideos" sleep 1 rsync -varP --stats Videos/ /storage/home/ken/Videos/ --------- for you it would be: sudo rsync -varP --stats /home/ root@Umalusi:/drobo/backup-'date +%A'/ ********** I use the echo statement so my log has a record of which folder was being backed. The sleep statement is optional and use use --stats to show more info on the process. Also, /storage is a mounted second drive as I never keep backups on the same drive as the original because if the drive crashes there goes the original and backup all at the same time.
This would, I believe, recursively copy all items in the /home directory, archiving files and folders, being verbose, and provide a human readable progress indicator, and place them in a dated folder on the backup medium with path being /Drobo.
Since it is copying onto a root file-system is sudo still required or would it not still request the root password?
If you are copying all of /home it will need to be run by root. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org