You are not logged in.

#1 2009-02-11 11:30:07

the.armageddon
Member
From: germany
Registered: 2009-02-10
Posts: 13

"Inverse Backup"

Hello archboard-community..

I wrote a little backupscript for my system. It is launched every 24 hours and executes some rsyncs with the /, with home, a.s.o..

This data ist stored on an external HDD.

Now I'm about to write a restorescript, wich should lay on this hdd. If the system is crashed, I can boot in my gParted-LiveCD running this script.

Since now im deleting all the old content and copy the whole backup into the target-partition. This is damn slow.


But im stucked in development at the moment.

The script gets the src- and the target-directory as arguments. First it iterates both dirs recursively, and deletes all files and directorys in the target, which aren't existant in the src.

The next step should be the opposite of "cp -a": replacing all files that are newer (!) than the src-file.
Since I don't want to have any dependencies (like rsync, etc) on the LiveSystem, I'm searching for a method to solve this.

I'm not such familiar with bash-scripting, so please be less stringend to me  big_smile


Greets,

armageddon

Offline

Board footer

Powered by FluxBB