]>
git.sesse.net Git - backup.sh/log
Steinar H. Gunderson [Sun, 5 Apr 2020 10:07:29 +0000 (12:07 +0200)]
Move the directory argument last, since --exclude-from is a positional argument in newer versions of tar.
Steinar H. Gunderson [Sun, 9 Dec 2018 21:24:09 +0000 (22:24 +0100)]
Support changing compressors (e.g. to get zstd or xz).
Steinar H. Gunderson [Sat, 15 Oct 2016 10:22:34 +0000 (12:22 +0200)]
Rename “daglig” backup to “daily”.
Steinar H. Gunderson [Sat, 15 Oct 2016 09:34:01 +0000 (11:34 +0200)]
License as GPLv2+; all copyright holders have agreed.
Steinar H. Gunderson [Sat, 15 Oct 2016 09:31:26 +0000 (11:31 +0200)]
Fix a typo.
Steinar H. Gunderson [Sat, 15 Oct 2016 09:28:38 +0000 (11:28 +0200)]
Move from configuration in various scattered single files to everything (except exclude files and preexec/postexec scripts) in a single global git config file.
Steinar H. Gunderson [Sat, 15 Oct 2016 08:46:42 +0000 (10:46 +0200)]
Deal with nice and/or ionice not existing on the target system.
root [Mon, 22 Dec 2014 10:36:49 +0000 (11:36 +0100)]
For encrypted backup, do not ask GPG to compress already compressed data.
root [Tue, 14 Oct 2014 14:53:05 +0000 (16:53 +0200)]
Compress PITR backups every night.
root [Tue, 14 Oct 2014 14:52:56 +0000 (16:52 +0200)]
Fix a typo that would cause maxfull to be 0 sometimes.
root [Sun, 12 Oct 2014 13:32:43 +0000 (15:32 +0200)]
skruebackup is no longer in use
Steinar H. Gunderson [Wed, 8 Oct 2014 23:53:10 +0000 (01:53 +0200)]
Revert "Support switching out cat for something that e.g. encrypts before storing."
This reverts commit
90f2496f39fe058d9cb325d0f8a47fe006401309 .
Steinar H. Gunderson [Wed, 8 Oct 2014 22:48:53 +0000 (00:48 +0200)]
Support switching out cat for something that e.g. encrypts before storing.
Steinar H. Gunderson [Wed, 8 Oct 2014 21:49:56 +0000 (23:49 +0200)]
Be more consistent about ssh and scp options.
Steinar H. Gunderson [Wed, 8 Oct 2014 08:41:24 +0000 (10:41 +0200)]
Fix a bug where the lock file would be removed if seen from a different process.
Steinar H. Gunderson [Tue, 7 Oct 2014 21:36:31 +0000 (23:36 +0200)]
Make it possible to have the script use other directories than /home/backup and /backup.
Steinar H. Gunderson [Mon, 6 Oct 2014 22:44:56 +0000 (00:44 +0200)]
Add an example script for the other side of non-privileged backup.
Steinar H. Gunderson [Mon, 6 Oct 2014 22:43:56 +0000 (00:43 +0200)]
Some minor fixes for non-privileged backup.
Steinar H. Gunderson [Mon, 6 Oct 2014 22:34:29 +0000 (00:34 +0200)]
Fuse backup-nonpriv.sh into backup.sh.
Steinar H. Gunderson [Mon, 6 Oct 2014 21:47:47 +0000 (23:47 +0200)]
Kill the sdx files; they are not very useful.
Steinar H. Gunderson [Sun, 5 Oct 2014 22:33:02 +0000 (00:33 +0200)]
Update README.
Steinar H. Gunderson [Sun, 5 Oct 2014 22:32:58 +0000 (00:32 +0200)]
Small logging tweaks.
Steinar H. Gunderson [Sun, 5 Oct 2014 22:17:13 +0000 (00:17 +0200)]
Add a wrapper script for running everything in parallel again and output the logs in one go.
Steinar H. Gunderson [Sun, 5 Oct 2014 21:47:53 +0000 (23:47 +0200)]
Fix a stray \\n in a message.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:59:45 +0000 (19:59 +0200)]
Slightly more consistent names for the .snar files.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:54:42 +0000 (19:54 +0200)]
Unify logging a bit.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:37:21 +0000 (19:37 +0200)]
Remove strange backtick usage.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:31:58 +0000 (19:31 +0200)]
More if/then consistency fixes.
Steinar H. Gunderson [Sun, 5 Oct 2014 16:10:35 +0000 (18:10 +0200)]
Do not create .date before the backup is done.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:52:31 +0000 (11:52 +0200)]
Output something even if we succeeded.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:44:07 +0000 (11:44 +0200)]
Another fix for non-snapshot backups.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:39:41 +0000 (11:39 +0200)]
Fix a typo.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:39:35 +0000 (11:39 +0200)]
If .date becomes invalid, revert to full backup.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:32:23 +0000 (11:32 +0200)]
Do not try to get .incremental.snar if we did a date-based backup.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:50:34 +0000 (00:50 +0200)]
Support different maxnumfull per-filesystem.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:46:09 +0000 (00:46 +0200)]
Slightly more consistent coding style.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:45:39 +0000 (00:45 +0200)]
Unify logging a bit.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:42:14 +0000 (00:42 +0200)]
This comment does not really make any sense.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:41:53 +0000 (00:41 +0200)]
Always assume /root exists for root, instead of trying to go through hoops to expand ~.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:40:18 +0000 (00:40 +0200)]
Delete lockfile on abort; we should try again automatically next night.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:39:26 +0000 (00:39 +0200)]
Englishify a bit more.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:38:10 +0000 (00:38 +0200)]
Reindent everything, so that we are not stuck with two differing indentation levels forever.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:30:11 +0000 (00:30 +0200)]
Englishify a bit.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:28:47 +0000 (00:28 +0200)]
report.sh is no longer in use, so remove it.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:24:25 +0000 (00:24 +0200)]
Some minor cleanups.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:21:49 +0000 (00:21 +0200)]
Support native GNU tar incremental backups instead of using --newer.
Steinar H. Gunderson [Sat, 4 Oct 2014 21:30:49 +0000 (23:30 +0200)]
Remove the $backuplevel = incremental test; nothing ever sets that value.
Steinar H. Gunderson [Sat, 4 Oct 2014 21:22:50 +0000 (23:22 +0200)]
Use pigz if it is available, for less CPU-bound operation.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:54:58 +0000 (22:54 +0200)]
When we run out of disk, do not count that as success.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:52:07 +0000 (22:52 +0200)]
Remove now-obsolete comment.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:50:30 +0000 (22:50 +0200)]
Make the error message when /backup is missing slightly better.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:49:26 +0000 (22:49 +0200)]
Remove obsolete remotestat stuff.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:46:44 +0000 (22:46 +0200)]
Remove the built-in forking support; take that from cron instead.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:37:28 +0000 (22:37 +0200)]
Spelling fixes.
root [Sat, 4 Oct 2014 20:36:14 +0000 (22:36 +0200)]
Remove useless TODO.
root [Sat, 4 Oct 2014 20:14:48 +0000 (22:14 +0200)]
Add files that were never in RCS.
root [Sat, 4 Oct 2014 20:14:03 +0000 (22:14 +0200)]
Missing changes after RCS import.
root [Thu, 3 Oct 2013 12:40:42 +0000 (12:40 +0000)]
Add .lastbackup
root [Mon, 16 Jul 2012 11:13:49 +0000 (11:13 +0000)]
Fix mkdir for glob behavior of newer bash.
root [Mon, 16 Jul 2012 11:12:44 +0000 (11:12 +0000)]
Fix behavior with newer tail.
root [Mon, 16 Jul 2012 11:12:01 +0000 (11:12 +0000)]
Some minor changes that were done without checking out from RCS.
root [Tue, 5 Oct 2010 00:23:07 +0000 (00:23 +0000)]
Fix some Norwenglish.
root [Tue, 5 Oct 2010 00:19:02 +0000 (00:19 +0000)]
Take backup at lowest possible (non-idle) CPU priority, and idle I/O priority.
root [Tue, 5 Oct 2010 00:12:51 +0000 (00:12 +0000)]
All of our machines use regular tar as tar now; remove the logic for changing the command.
root [Wed, 13 Jan 2010 11:59:17 +0000 (11:59 +0000)]
Comment out debug statement that causes noise in cron mail
root [Sat, 5 Dec 2009 15:46:10 +0000 (15:46 +0000)]
Implement staggered full backup.
root [Sat, 5 Dec 2009 14:52:18 +0000 (14:52 +0000)]
Fix outdated comment.
root [Sat, 5 Dec 2009 14:47:31 +0000 (14:47 +0000)]
Fix some evil && and || use.
root [Thu, 3 Apr 2008 11:42:32 +0000 (11:42 +0000)]
Using -k 2 rather than +2 for sorting by column 2
root [Thu, 14 Feb 2008 13:12:04 +0000 (13:12 +0000)]
PID in lockfile, also prints when exists before run.
root [Mon, 14 Jan 2008 19:57:32 +0000 (19:57 +0000)]
Fix sdx/idx-filename
root [Sat, 22 Dec 2007 03:15:28 +0000 (03:15 +0000)]
Put PID of backup script in lockfile.
root [Mon, 17 Dec 2007 21:24:34 +0000 (21:24 +0000)]
TODOs fixed, known issues listed
root [Mon, 17 Dec 2007 20:47:57 +0000 (20:47 +0000)]
sdx is now sorted on file name
root [Mon, 17 Dec 2007 20:12:26 +0000 (20:12 +0000)]
we use gzip
root [Mon, 17 Dec 2007 20:05:05 +0000 (20:05 +0000)]
now uses pee instead of tee to speed up idx file creation
root [Mon, 17 Dec 2007 19:45:42 +0000 (19:45 +0000)]
Cosmetic cleanups: Better comments, logging and configuration variables readability
root [Mon, 17 Dec 2007 19:27:01 +0000 (19:27 +0000)]
Log in English
root [Mon, 17 Dec 2007 19:14:03 +0000 (19:14 +0000)]
now run backups in parallell again
root [Sun, 16 Dec 2007 22:14:04 +0000 (22:14 +0000)]
Added a few TODOs.
root [Fri, 17 Aug 2007 01:11:04 +0000 (01:11 +0000)]
fikset backupscript til å varsle dersom målfilesystemet tilfeldigvis er rot (/)
root [Wed, 15 Aug 2007 15:10:14 +0000 (15:10 +0000)]
Log to both stderr and stdout
root [Wed, 15 Aug 2007 14:39:42 +0000 (14:39 +0000)]
sort and tail now uses a slightly different syntax, as the old is deprecated in Etch
root [Wed, 15 Aug 2007 14:36:46 +0000 (14:36 +0000)]
Check for non-zero tar file instead of errors from tar.
root [Tue, 31 Jul 2007 20:41:24 +0000 (20:41 +0000)]
Correct logic on evaluating and running {pre,post}exec
root [Sun, 29 Jul 2007 14:15:32 +0000 (14:15 +0000)]
Important note
root [Sun, 29 Jul 2007 14:14:00 +0000 (14:14 +0000)]
Warn on {pre,Ãpost}exec failures
root [Fri, 27 Jul 2007 12:43:05 +0000 (12:43 +0000)]
continue er ikke det samme som break, nei.
root [Fri, 27 Jul 2007 01:24:38 +0000 (01:24 +0000)]
Støtter nå å kjøre som ikke-root.
root [Thu, 26 Jul 2007 15:38:39 +0000 (15:38 +0000)]
ting kjører i parallell
root [Thu, 26 Jul 2007 14:24:40 +0000 (14:24 +0000)]
Lots of log message fixing, now prints nothing on stdout when there's no errors
root [Thu, 26 Jul 2007 13:47:07 +0000 (13:47 +0000)]
Less forks!
-berge
root [Thu, 26 Jul 2007 02:57:59 +0000 (02:57 +0000)]
Better handling of return value.
root [Thu, 26 Jul 2007 02:23:32 +0000 (02:23 +0000)]
Remove lockfile on successful ending (-:
root [Thu, 26 Jul 2007 02:22:12 +0000 (02:22 +0000)]
Now implements locking and catch of SIGINT and SIGTERM
root [Thu, 26 Jul 2007 02:11:06 +0000 (02:11 +0000)]
Various bug fixes and improvements
-berge
sesse [Wed, 25 Jul 2007 17:46:26 +0000 (17:46 +0000)]
Drop -c blowfish; it's slower than the default (AES).
sesse [Wed, 25 Jul 2007 17:44:51 +0000 (17:44 +0000)]
Use --one-file-system instead of -l, since the latter stopped working in etch.
root [Wed, 25 Jul 2007 16:47:44 +0000 (16:47 +0000)]
Initial revision
root [Wed, 25 Jul 2007 16:47:19 +0000 (16:47 +0000)]
Now checks wether we actually can SSH to the computer we're backing up first.
-berge