Hi,
I'm trying to write a script that backs-up files to an archive partition. My initial thoughts are that I can launch it from a desktop shortcut, as root user. Here's what I've tried so far:
/usr/local/bin/backup.txt
Code:
init 1
rsync -avx /home /archive
As you can see, it copies the /home folder into /archive. Each are on separate partitions. I drop down to init 1, because I figure it will release any locked files and enable them to be copied over. However, after my first attempt, I had to
fsck my file system!
So please point me in the right direction before I accidentally electrocute myself, or something even worse happens!!!
Thanks in advance for your replies