Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

I think the idea is you incorporate this into a wider backup script.


sort by: page size:

Thanks! I like this, it's also simpler than such backups and keeping them safe

Ah, I like it! Maybe I'll combine with the 'configure backup' one. ('configure AND TEST backup' !!)

Also, script disaster recovery too. Script it when creating your backup procedure (not at the time of disaster), use the script to test your procedure, and do it often.

This way, when your script fails, you can recover quickly.


I'd expand this to actually take the time to implement (or make yourself) a system to automate said backups and maybe even testing them automagically. You'll probably end up using the same set of scripts for all your beginning projects and it'll be worth having.

I see what you're saying...kind of like an AI or an "automation" tool/framework for backup.

I was focusing on the lower-level building blocks.


Just a backup script for Linux - bummed it together with some googling:

Designed for overnight backup, hook up a backup drive in the afternoon one day, and put in safe the next morning.

Script mounts and verifies existence of a backup external hdd; creates a backup tar on the drive; deletes all but the last five recent backup archives; then unmounts drive for removal next morning.


I think you need to explain that this is a script generator, not a backup service...

Oh, got it. I thought the tool wanted to go back and walk through a progression of previous backups. I can certainly do a new backup

I could be wrong, but its something along the lines of...

You have 500gb of files at t0, that gets backed up as Backup1.backup, then you download a 15kb text file and kick off another backup. Instead of completely regenerating a backup of all the data, it will instead recreate a new Backup snapshot, but it will still use that original Backup1.backup file and then have some data structure in place that allows you to just incrementally backup the new data while still preserving the integrity of the old files and the integrity of the previous snapshot.


Author here. We'd love this to be a thing, but this is young software, so we don't recommend relying on this as a single way of doing a backup for now. Bear in mind that our main use case is for things that you can reproduce in principle (builds of a commit history, see manyclangs).

This is exactly the application I considered upon seeing this article.

I'm planning to loop back and investigate how restoration would work, but it seems like a potentially great way to have another layer of backup.


This looks like it could be really nice for duplicating backups into a separate bucket with more severely locked-down access, to alleviate concerns about things like a disgruntled employee blowing away a backups bucket.

I didn’t know that existed. Is there some way to use that to create a backup solution?

I see you've also used BackupExec.

I also don't understand why the backups are done the way they are. Why not just copy the current file to the backup, and not break hardlinks?

That's a great idea. The backup is on my desktop so I'll have to wait until I can access it. Would love to share it.

Not the parent, but my homebrew backup script first makes the backup and then attempts to restore a canary file. If that fails it raises the alarm.

It's not perfect. I can imagine a scenario where the canary is restorable, but some other important files aren't. However it certainly protects against cases where a bug in the backup software makes a completely unreadable snapshot (which has happened to me before).


A differential backup file would be my guess.

Can you please share your script for manually downloading all the backups? I also can't manage to get a backup done.
next

Legal | privacy