1748216 Members
3428 Online
108759 Solutions
New Discussion юеВ

Re: Home backup project

 
SOLVED
Go to solution
John Collier
Esteemed Contributor

Re: Home backup project

OK, as promised I have done some reading on this.

Now I have come up with a possible command to try and I would like to bounce it off of all of you and see what sticks and what stinks.

According to the info I read (36 or so printed pages from the I-net link provided above) I think I want to run a command line of

rsync -caKWi -delete-during /home/{user} /path/to/nfs_mounted/backup/directory/

Now, each host has nfs mounts for the fileserver. Based on this fact, I think I could even get rid of the -W option if I read the defaults correctly.

Question: If I am pointing the rsync command at two 'local' directories even if the destination is truly an nfs mount, I really won't have to worry about the ssh or any other remote connection, right?

Does anybody see a flaw in this command or line of thinking that they would like to share?
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855
Stuart Browne
Honored Contributor

Re: Home backup project

It looks good to me.

And yes. Because you're using NFS, you don't have to worry about the '-e ssh' or anything like that. It's all treated 'local'.
One long-haired git at your service...
John Collier
Esteemed Contributor

Re: Home backup project

Well, I see bunnies hopping through here shortly.

The rsync worked just as you all said it would.

All I have to do now it put it into a cron for her user and we are off to the races.

One more question before I close this thread off (if I may be so bold):

When I ran the command that I last listed here as my own home cooked version, everything passed through just as I would have expected with one glaring exception.

The last line that was shown from the command output was:

rsync error: some files could not be transferred (code 23) at main.c(789)

Now I am sure that I have simply overlooked something, but I am not seeing where this output was listed in the info that was on the site linked above or anywhere else.

Can somebody give me a clue as to what most likely went wrong and what (if anything) can or should be done to resolve it in the future?
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855
Steven E. Protter
Exalted Contributor

Re: Home backup project

SEP

I like Stuart's first exapmle.

I'm however trying to get it done with rsync and found a useful link.

http://oldmill.uchicago.edu/~wilder/Security/rsync/

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yogeeraj_1
Honored Contributor

Re: Home backup project

hi john,

Also have a look at the following:

http://rsnapshot.org/faq.html


hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
John Collier
Esteemed Contributor

Re: Home backup project

Steven,

Thanks for the link. Gives one ideas on how to script it out if they wish. Good info on firewalls and some other quirks as well.

Unfortunately, no information found there pertaining to the errors I see at the end of each run.



Yogeeraj,

Interesting thought. If it would have come in first, perhaps I would have gone that way. As it is, I think I will be happy with the rsync solution for my needs. As always, I still appreciate your input.


Still searching for the reason it would tell me that some files could not be copied. If anybody has a hint on where I overlooked that at, I would still be grateful.
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855
John Collier
Esteemed Contributor

Re: Home backup project

Ivan wins the race for the biggest bunny since he was the very first to suggest rsync. A few others were handed out as well since there were some really good additional entries with further info and links to great resources.

As far as my last questions regarding why there were constant error messages about files that could not be copied, I found I was the one shooting myself in the foot with that one. I was running the command line under a regular user logon, not root. Once it was run using the root account, all was good and happy in rsync land.

Footnote for anybody else considering this as an option for his or her own network(s):

I included an option in my command line that adds an extra level of comparison between the files being copied and the existing files (refer to the info pages linked above for more intimate details on the options). While this is a good thing if you want to be as thorough as possible, it does GREATLY lengthen the time it takes to actually perform the operation.

I would strongly suggest that you read the options available for rsync and perhaps do several test runs to see which ones work best for your particular environment. It is very likely that my choice of options will not be what you would want.

The other options that were provided also look promising and I am sure that they would work wonderfully in the right environment. I do not want to discount them at all. Personally, I am glad that this is my thread. For this reason, I know that I will never loose the information on these other possible resources. In another environment, they may very well be a better choice.

Many thanks to you all for all the wonderful input and the patience you have shown.

I still say this is the absolute BEST user forum on the face of this planet!
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855