Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
should help you find out. I assumed your 2 boxes are connected over a network. If so, it's the right thing for you.
if you don't have it installed... well, I'm on debian here, but isn't it yum on fedora?
type
rsync -av 192.168.0.123:/home /backup
would be correct, with the colon between ip and directory.
now this is to be run on the backup pc, with 192.168.0.123 being the other one.
try it!
baikonur: Ok, at least I understand few, thanks ^^"
So, it should be like this:-
- The backup host is 192.168.0.123 and the source host is 192.168.0.10
- Backup 192.168.0.10's /home directory to the /backup
So, on 192.168.0.123 host I type this:-
Code:
rsync -av 192.168.0.10:/home /backup
ok..I've tried it, it works ..Thanks! May I know how to schedule the backup pc to retrieve/backup the directory on the source pc? And how to eliminate the need to type the password always?
to have it executed everyday at 10 in the morning.
the password thing... hmmm. the rsync home page says:
You can avoid the password prompt by setting the environment variable RSYNC_PASSWORD .
you could try that.
what i do is this: i run it in a ssh-tunnel. like this
Code:
rsync -av -e ssh 192.168.0.10:/home /backup
to avoid typing the password everytime I exchanged rsa keys between the servers. look around in the forum, I'm pretty sure s.o. described how to do that already.
Just another question...why I get this error? It seems I've tried, even changed from 24 hour format to 12 hour format, and changed it back..but it still display this message everytime I save the file.. any helps?
Code:
"/tmp/crontab.XXXXrBToyG":2: bad hour
errors in crontab file, can't install.
Do you want to retry the same edit?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.