Backing up and Deploying - Servers Administration, Networking, & Virtualization
Users browsing this thread: 5 Guest(s)
|
|||
I'm planning to roll currently rolling my own "backup" script, that stores things like that:
How to do this without all the cli option & stuff: This allows to make versioning easily: just need to add new <code>./.version/rev/*</code> ~100 lines text file (md5sum output) to have a new version. This permits de-duplication of content across versions: Any file that did not change is not duplicated: it already exist in <code>.version/obj/<hash-of-the-file></code>, even if the file gets renamed. I may even add some merging operations to gather content on multiple storage, then merge them with <code>version merge tree1 tree2</code>. It seems that it is a bit like what git does: https://git-scm.com/book/en/v2/Git-Inter...it-Objects For now, I use md5sum because it is faster and I just start to play with it. The process is rather slow compared to git, but it's only a 227 shell script for now... So far, backing up data and switching between revisions works. You can safely run <code>version</code> without argument to get short usage message to start playing with it. [EDIT] formatting I just bought a hard drive enclosure (sorry for this being some kind of ads). (25-09-2016, 12:55 PM)vain Wrote: ... I hope this can face a few of these issues. This along with my script generating md5sums and comparing them with previous revision at every version (diff with <code>version diff</code>). As I can not roll a 10 year long tested software with a lot of work to make it work everywhere, I bet on simplicity to make things safe: The script never ever delete data. `rm` never acts on the read-only <code>./.version/{rev,obj}/*</code> content. So in case of disaster, <code>version revision <revision-hash></code> restores everything. I will let you know in the Unix Diary thread if I encounter a great disaster with this! ^_^ One problem: it does not provide any way to backup data on a remote host. Z3bra's <code>synk</code> may be much better for this purpose. Maybe I could combine them some day. |
|||
Messages In This Thread |
Backing up and Deploying - by venam - 29-05-2016, 12:01 PM
RE: Backing up and Deploying - by z3bra - 07-09-2016, 09:14 AM
RE: Backing up and Deploying - by TheAnachron - 07-09-2016, 09:37 AM
RE: Backing up and Deploying - by z3bra - 07-09-2016, 10:45 AM
RE: Backing up and Deploying - by TheAnachron - 09-09-2016, 04:20 AM
RE: Backing up and Deploying - by movq - 25-09-2016, 12:55 PM
RE: Backing up and Deploying - by venam - 25-09-2016, 01:33 PM
RE: Backing up and Deploying - by movq - 25-09-2016, 03:19 PM
RE: Backing up and Deploying - by josuah - 02-01-2017, 04:52 PM
RE: Backing up and Deploying - by pranomostro - 03-01-2017, 09:00 AM
RE: Backing up and Deploying - by jkl - 03-01-2017, 10:39 AM
RE: Backing up and Deploying - by venam - 03-01-2017, 11:09 AM
RE: Backing up and Deploying - by z3bra - 31-07-2020, 03:55 PM
RE: Backing up and Deploying - by opfez - 31-07-2020, 07:44 PM
RE: Backing up and Deploying - by z3bra - 11-08-2020, 04:45 AM
RE: Backing up and Deploying - by venam - 02-08-2021, 01:21 AM
RE: Backing up and Deploying - by fre d die - 02-08-2021, 09:15 AM
RE: Backing up and Deploying - by jkl - 02-08-2021, 11:12 AM
RE: Backing up and Deploying - by z3bra - 04-08-2021, 08:46 AM
RE: Backing up and Deploying - by venam - 07-11-2021, 04:46 AM
RE: Backing up and Deploying - by swathe - 30-05-2016, 01:44 AM
Your backup solution? - by TheAnachron - 07-09-2016, 05:14 AM
RE: Your backup solution? - by venam - 07-09-2016, 05:21 AM
RE: Your backup solution? - by TheAnachron - 07-09-2016, 05:58 AM
RE: Backups! - by venam - 19-04-2019, 10:00 AM
|