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.
so i copied my data onto a hard drive and then chucked it into the home directory on my centos box 20km away...
im running this script from a cygwin shell on my windows server 2008r2...but the same thing is happening with a similar script pointing to a local usb hard drive...it also creates dir* and doesnt seem to sync
If you would show an example of the rsync output messages and what gets created/updated, perhaps just for the first two rsync lines in that script, then someone might be able to help. Otherwise, there's not much to go on. It might be more obvious if you started with an empty destination directory.
You appear to be dumping the contents of your source dir's into companydata/adegrow and also deleting the previously rsync'ed data (that doesn't exist in the current source).
So at the end of your script I would expect companydata/adegrow to ONLY contain a copy of what is in /cygdrive/d/sage/sage200vpn/
yes i want to have it so if a file is deleted, it is deleted on the backup (maybe this is a bad idea, in case of accidental file deletions???) i cant do a straight copy as its over the internet and i tried once and it failed (timed out) so i wanted to place files on the remote centos server hoping that the sync would be a lot faster
i will redirect output to a text file and upload it here when i get a chance...thanks for the replies
descendant_command made the good catch. Each rsync command with a "--delete" option will delete from the destination anything that does not exist in the source for that command. The net result will be that only the files from the last rsync command will remain and everything else will be deleted.
To make "--delete" work the way you need it to, you would need to combine everything into onersync command with multiple sources.
Still battling with this...havent had much time recently to look at it...backing up onto external hard drives using rsync is working perfectly but no matter how i try to structure the path using / at the end etc...it always makes a new copy...i just cant get it to sync the data...is it possibly a write permissions problem?