Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I built a small server to backup my laptop and my wife's laptop. I'm running Slackware 10.2 on both and her laptop runs XP so I setup samba to share windows like so she could access the backups. I smb mount /home/enine from the remote server then use rsync to copy the data from /home/enine on my laptop over.
Odd problem i'm having is when using the --delete option any files I delete on my laptop under subdirectories under /home/enine gets deleted on the server but nothing in /home/enine gets deleted. I typically copy everything to /home/enine be it downloads, or files copied from a digicam or scans, then sort/rename/convert/whatever and then move them to where they need to be so if I do a backup in between I end up with a lot of old files sitting on my /home/enine on my server. Anyone know why it wouldn't delete in the top level folder but works fine under.
Also do you have any suggestions on how to rsync but not delete files for a certain length of time to sort of give a buffer if I delete/rename/change something I didn't want to.
I just suggest you take a look at rdiff-backup. It's a program that most distros have, probably Slackware too.
It uses rsync to do the backups, but has no problem with delete, and also has a rollback feature so you can set it up so it will store diff files in a special directory called rdiff-backup-data and those diffs can be used to recreate the filesystem after you have "rsynced" a a backup with --delete.
I think the program is really neat, much better backups than a regular rsync one.
You would need to post your command & config file.
However, consider using cwrsync (free rsync for Windows), which will allow you to use rsync's checksumming feature to only transfer those parts of a file that have changed. Rsync'ing a mounted drive is an ugly solution.
Also do you have any suggestions on how to rsync but not delete files for a certain length of time to sort of give a buffer if I delete/rename/change something I didn't want to.
I do something like the below example. My rotation scheme is backup-count-based, not time-based, but you could modify that if you desire. I actually have a long-winded PERL script that does this, so I extracted just the minimum code to illustrate what I do. Since I manually extracted code from PERL and retyped it into a functionally similar shell example (hopefully!), I have not specifically tested the example below. It's for illustration purposes only. You have been warned!
You would need to post your command & config file.
However, consider using cwrsync (free rsync for Windows), which will allow you to use rsync's checksumming feature to only transfer those parts of a file that have changed. Rsync'ing a mounted drive is an ugly solution.
yea, it looks like the trailing / tells it to delete in the parent folder. Obscure option I didn't see.
I'm backing up to a linux server not windows, I'm just running samba to my wife's Xp box can access my files if needed (read only so no windows virus can wreck anything)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.