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: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,044 |
Nodes: | 17 (0 / 17) |
Uptime: | 57:36:13 |
Calls: | 501,804 |
Calls today: | 5 |
Files: | 104,424 |
D/L today: |
13,670 files (2,047M bytes) |
Messages: | 299,597 |
Posted today: | 3 |