Search the Community
Showing results for tags 'rsync'.
https://wiki.archlin...ckup_with_rsync Well after me near disaster I thought it best to do a backup. So I followed the ARCH WIKI made a script called " phew.sh " placed it in a newly made folder called " ~/Scripts " (/home/me/Scripts) and followed the instructions, So I was quite surprised that me terminal tells me there is no " ~/Scripts/phew.sh ". However " # /home/me/Scripts/phew.sh /some/destination " does exist and the backup is now hopefully running. So am I doing something wrong with " # ~/Scripts/phew.sh /some/destination " or is the Arch Wiki wrong ?
Mirroring My Slackware Partitions - Using Porteus (thumb drive) Linux > grsync as root (can also be done with rsync as root from terminal) - Porteus automatically mounts all available partitions. However, best to check > gparted to check mounting or > cd mnt to check Note: both source and destination must be mounted for rsync to work. - Open Terminal > su to root > start grsync - Set up session in grsync > check preserve user, permissions, time, groups, etc > check copy symlinks and hardlinks > uncheck verbose > choose source - add trailing / to prevent source directory creation on destination > choose destination > test run, if wanted > start live run - Repeat above for each partition to be mirrored - After mirroring completed, to make the mirror bootable as the original, fstab must be edited to correct for source/destination partition number discrepancies - Also edit GRUB to boot mirrored partition ===== For rsync, just make sure the source and destination are both mounted, then execute (as root): #rsync -a /dev/sd/ /dev/sd *Don't forget trailing / after source. ____________________________________________________________________________ rsync is VERY COOL! I should have been using this years ago to backup. It took about 45 minutes to mirror my 25Gig / and my 50Gig /home partitions. I can do this every Sunday. I'll never lose more than 7 days' worth of work this way. Unless, of course, my drive crashes, since both the original and source are on the same drive. I have two other drives on this system, though. Time permitting, I may set up one with the proper sized partitions to create a true backup. The current method is only to provide me with a usable Slackware if I should booger up my primary one somehow. So, there we go...