Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i have centos 5.3 installed i use rsync to backup local to remote with rsync -avz -e "ssh -i /root/rsync-key" /sourcefolder/ root@remoteip:/destination folder/ . it also works properly
but i want to copy this data on destination with datewise incremental backup how it possible
Last edited by amartlk; 02-21-2012 at 08:32 AM.
Click here to see the post LQ members have rated as the most helpful post in this thread.
this is probably more involved than you expect since the notion of modified time or incremental are not built into rsync.
I figure you have to options:
option 1) setup a local backup process to generate weekly fulls and daily incrementals to a folder on your source pc. then rsync that backup folder to the destination.
depending on the distribution you're using, you may have access to a simple backup program that will handle the generation of backups for you. if you don't have access to pre-fabricated backup applications, you can make your own. I found a good guide here: http://www.linux-backup.net/Full_Inc/
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
rsync is a very useful and powerful program for doing incremental transfers of files, whether that is locally or remotely.
Suppose I want to backup to my USB memory stick so I have an up-to-date copy of them wherever I go. My source folder here is ~/Documents and my memory stick is mounted at /media/disk right now.
Initially, you will have to use rsync to copy all the files across, since an incremental copy doesn't yet exist.
# rsync -avh ~/Documents /media/disk
That sets up an archive copy. Depending on how much stuff you have and where you're copying, it might take some time, but the verbose option we used (-v) should show you the name of each file as it is copied over.
Once that's done, you've got your initial copy done. Now when you need to synchronise the two copies, simply run the same command again. This time, rsync will go off and find only the files that have changed, and copy those over. When it has finished, both copies will then be up-to-date, and you can get back on the move.
One important aspect of rsync is using the --delete option because you do not want to leave files that were deleted.
Be very CAREFUL with using the delete as you do NOT want to purge the files on the source.
For a valid backup you would need to implement this, otherwise you will create a quagmire of non-valid data.
I have used the --delete option when migrating server to server, the end user never knows their data be it email, file_shares, ect... was ever migrated. Otherwise the end user will be inundated with data they do NOT want.
Last edited by rhbegin; 02-23-2012 at 10:32 AM.
Reason: need to implement --delete option