tonys_hiptop
08-05-2004, 03:02 PM
So if I was to use the CP command to backup to a second drive would this work .....
cp -a --target-directory=/backup /home /usr /var /root /etc
where /backup is hdc1, my second drive.
Does this get me what I need and preserve ownership and permissions? A small test looked like the cp -a keeps all the owner and permissions intact. Is this the way to go to protect against drive failure? I could also tar up /home and ftp it to protect against deleted file mistakes by users.
Would this be a reasonable procedure to do on a small server with 40gb drive that's pushing only about 4gb of traffic per month.
Could I do it every night on a cron job?
Suggestions anyone?
cp -a --target-directory=/backup /home /usr /var /root /etc
where /backup is hdc1, my second drive.
Does this get me what I need and preserve ownership and permissions? A small test looked like the cp -a keeps all the owner and permissions intact. Is this the way to go to protect against drive failure? I could also tar up /home and ftp it to protect against deleted file mistakes by users.
Would this be a reasonable procedure to do on a small server with 40gb drive that's pushing only about 4gb of traffic per month.
Could I do it every night on a cron job?
Suggestions anyone?
