The weekly rsync backup ran - and... --delete made sure ALL the backup data was - deleted. And, users weren't able to download this past week
and the bug reports started flowing in.
The rsync command I was using to backup had the --delete tag. I thought
The weekly rsync backup ran - and... --delete made sure ALL the backup data was - deleted. And, users weren't able to download this past week and the bug reports started flowing in.
The weekly rsync backup ran - and... --delete made sure ALL the
ouch, saw it coming the second i saw 'rsync' ..
Does '--max-delete=NUM' help your use case at all?
The weekly rsync backup ran - and... --delete made sure ALL the backup was - deleted. And, users weren't able to download this past week and t bug reports started flowing in.
Sorry for your luck dude...
Reminds me of a time that I worked for an airline (IT admin) long time ago, and we had a system that kept core dumping (it was a new app), and the core files were so big, that 2 or 3 of them filled some important mount points.
The core files were important for the developers, so I had to keep them, so I wrote a script to find them each night and compress them (they compressed really well if I recall).
I tested, tested, tested - since my script tralled through the whole system looking for core files and I was confident it was working.
I deployed the script to another important system (starting with the airlines network management system), and got a call at 1am - the system wasnt working, and I couldnt remote it to look at it. When I got to the office, my script had compressed every file on the host. Argh! - That
was a reinstall and a couple of days I couldnt of spent doing something better...
Anyway, wanted to share, if you want a different approach to backup,
take a look at restic - IMHO, it does a better job than a rsync approach to backup.
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 94 |
Nodes: | 16 (0 / 16) |
Uptime: | 07:12:01 |
Calls: | 5,136 |
Calls today: | 3 |
Files: | 8,491 |
D/L today: |
1 files (279K bytes) |
Messages: | 352,533 |