Advertisement

07.17.2008 at 07:53PM PDT, ID: 23575671
[x]
Attachment Details

rsync (Backing Up Files Locally)

Asked by julianmatz in Linux, Backup & Restore Software, rSync Backup Utility

Tags: , ,

Hi!

I have just installed a second SATA HDD on my server and have mounted it on /backup.

I made a shell script which was supposed to automatically do a daily backup of /var/mail/*, /var/www/*, /var/mysql/* and /etc/*.

The script itself was working fine but a) it was taking way to long for daily backups, and b) it was causing the server load to spike above 70!

I then looked into different options and thought if I could just overwrite older destination files and delete destination files that where deleted from the source directory during the backup, it would speed things up and save resources.

I looked at rsync, which seems to be able to do what I want, but I think I might need some help. From looking through the manual, it would seem like I'd need something like this:

rsync -ahruvpog --delete /var/mail/* /backup/mail/

But as I said, I'm not too sure. I have tested it a little, but it still seems to be taking forever, although the server load doesn't seem to high while it's running.
Start Free Trial
[+][-]07.17.2008 at 07:59PM PDT, ID: 22032581

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.17.2008 at 08:05PM PDT, ID: 22032606

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 09:03PM PDT, ID: 22032797

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.18.2008 at 02:39AM PDT, ID: 22034076

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.18.2008 at 03:47AM PDT, ID: 22034365

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 10:56AM PDT, ID: 22038180

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Backup & Restore Software, rSync Backup Utility
Tags: Debian, Linux, Etch
Sign Up Now!
Solution Provided By: agriesser
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.18.2008 at 11:34AM PDT, ID: 22038508

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 11:45AM PDT, ID: 22038601

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 11:54AM PDT, ID: 22038676

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:11PM PDT, ID: 22038809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 06:01PM PDT, ID: 22040990

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 06:33PM PDT, ID: 22041034

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 04:08AM PDT, ID: 22045262

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.21.2008 at 02:23AM PDT, ID: 22048975

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.21.2008 at 06:54AM PDT, ID: 22050489

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 07:21AM PDT, ID: 22050718

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.04.2008 at 08:04PM PDT, ID: 22157824

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628