Ekstatische Lyriken Pinnwand


written by crunge on Wednesday September 2nd, 2015 -- 3:24 p.m.
in reply to Backups and Linux's Bullshit

edit this message - return to message index
(only moderators may edit messages)
Until you write your own, have a look at rdiff-backup. I use it writing to a drive in an eSATA enclosure (USB enclosures apparently tend to be garbage).

I've restored from rdiff-backup a couple of times. Once using the restore command, another time just going and grabbing the data from the backups directory because grabbing the most recent one was good enough.

I have this in /etc/cron.daily/rdiff-backup:



BACKUP_PATHS="/usr/local/cfengine /var/lib/cfengine2 /etc /var/home /igor"

for backup_path in ${BACKUP_PATHS}
DEST=${BACKUP_DEST}/`echo ${backup_path}| sed -e 's|^/||' -e 's|/|-|g'`
${RDIFF_PATH} ${backup_path} ${DEST}
${RDIFF_PATH} --remove-older-than 2W ${DEST} 2>/dev/null

Also, revision control! If you just want something to keep you from nuking things you want to keep, git is great, branching is cheap and easy. If you just want something dead-simple, RCS is dead simple:

mkdir RCS
ci -l code.c
> I'm about to try something stupid
> .
vim code.c
# Oh yeah, shit was bad
co -l code.c


return to previous message - return to message index

Your Reply

Name: No registration necessary. Simply choose
a name and password and type them in.
You may want to read the rules before you spend a lot of time writing something.
Plain Text - What you type is what you will see.
Some HTML - Use this if you are including HTML tags.
Pure HTML - Copies your post directly into the web page.
first, then