]> git.sesse.net Git - backup.sh/log
backup.sh
4 years agoMove the directory argument last, since --exclude-from is a positional argument in... master
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.

5 years agoSupport changing compressors (e.g. to get zstd or xz).
Steinar H. Gunderson [Sun, 9 Dec 2018 21:24:09 +0000 (22:24 +0100)]
Support changing compressors (e.g. to get zstd or xz).

7 years agoRename “daglig” backup to “daily”.
Steinar H. Gunderson [Sat, 15 Oct 2016 10:22:34 +0000 (12:22 +0200)]
Rename “daglig” backup to “daily”.

7 years agoLicense as GPLv2+; all copyright holders have agreed.
Steinar H. Gunderson [Sat, 15 Oct 2016 09:34:01 +0000 (11:34 +0200)]
License as GPLv2+; all copyright holders have agreed.

7 years agoFix a typo.
Steinar H. Gunderson [Sat, 15 Oct 2016 09:31:26 +0000 (11:31 +0200)]
Fix a typo.

7 years agoMove from configuration in various scattered single files to everything (except exclu...
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.

7 years agoDeal with nice and/or ionice not existing on the target system.
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.

9 years agoFor encrypted backup, do not ask GPG to compress already compressed data. origin/HEAD origin/master
root [Mon, 22 Dec 2014 10:36:49 +0000 (11:36 +0100)]
For encrypted backup, do not ask GPG to compress already compressed data.

9 years agoCompress PITR backups every night.
root [Tue, 14 Oct 2014 14:53:05 +0000 (16:53 +0200)]
Compress PITR backups every night.

9 years agoFix a typo that would cause maxfull to be 0 sometimes.
root [Tue, 14 Oct 2014 14:52:56 +0000 (16:52 +0200)]
Fix a typo that would cause maxfull to be 0 sometimes.

9 years agoskruebackup is no longer in use
root [Sun, 12 Oct 2014 13:32:43 +0000 (15:32 +0200)]
skruebackup is no longer in use

9 years agoRevert "Support switching out cat for something that e.g. encrypts before storing."
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.

9 years agoSupport switching out cat for something that e.g. encrypts before storing.
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.

9 years agoBe more consistent about ssh and scp options.
Steinar H. Gunderson [Wed, 8 Oct 2014 21:49:56 +0000 (23:49 +0200)]
Be more consistent about ssh and scp options.

9 years agoFix a bug where the lock file would be removed if seen from a different process.
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.

9 years agoMake it possible to have the script use other directories than /home/backup and ...
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.

9 years agoAdd an example script for the other side of non-privileged 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.

9 years agoSome minor fixes for non-privileged backup.
Steinar H. Gunderson [Mon, 6 Oct 2014 22:43:56 +0000 (00:43 +0200)]
Some minor fixes for non-privileged backup.

9 years agoFuse backup-nonpriv.sh into backup.sh.
Steinar H. Gunderson [Mon, 6 Oct 2014 22:34:29 +0000 (00:34 +0200)]
Fuse backup-nonpriv.sh into backup.sh.

9 years agoKill the sdx files; they are not very useful.
Steinar H. Gunderson [Mon, 6 Oct 2014 21:47:47 +0000 (23:47 +0200)]
Kill the sdx files; they are not very useful.

9 years agoUpdate README.
Steinar H. Gunderson [Sun, 5 Oct 2014 22:33:02 +0000 (00:33 +0200)]
Update README.

9 years agoSmall logging tweaks.
Steinar H. Gunderson [Sun, 5 Oct 2014 22:32:58 +0000 (00:32 +0200)]
Small logging tweaks.

9 years agoAdd a wrapper script for running everything in parallel again and output the logs...
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.

9 years agoFix a stray \\n in a message.
Steinar H. Gunderson [Sun, 5 Oct 2014 21:47:53 +0000 (23:47 +0200)]
Fix a stray \\n in a message.

9 years agoSlightly more consistent names for the .snar files.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:59:45 +0000 (19:59 +0200)]
Slightly more consistent names for the .snar files.

9 years agoUnify logging a bit.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:54:42 +0000 (19:54 +0200)]
Unify logging a bit.

9 years agoRemove strange backtick usage.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:37:21 +0000 (19:37 +0200)]
Remove strange backtick usage.

9 years agoMore if/then consistency fixes.
Steinar H. Gunderson [Sun, 5 Oct 2014 17:31:58 +0000 (19:31 +0200)]
More if/then consistency fixes.

9 years agoDo not create .date before the backup is done.
Steinar H. Gunderson [Sun, 5 Oct 2014 16:10:35 +0000 (18:10 +0200)]
Do not create .date before the backup is done.

9 years agoOutput something even if we succeeded.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:52:31 +0000 (11:52 +0200)]
Output something even if we succeeded.

9 years agoAnother fix for non-snapshot backups.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:44:07 +0000 (11:44 +0200)]
Another fix for non-snapshot backups.

9 years agoFix a typo.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:39:41 +0000 (11:39 +0200)]
Fix a typo.

9 years agoIf .date becomes invalid, revert to full backup.
Steinar H. Gunderson [Sun, 5 Oct 2014 09:39:35 +0000 (11:39 +0200)]
If .date becomes invalid, revert to full backup.

9 years agoDo not try to get .incremental.snar if we did a date-based 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.

9 years agoSupport different maxnumfull per-filesystem.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:50:34 +0000 (00:50 +0200)]
Support different maxnumfull per-filesystem.

9 years agoSlightly more consistent coding style.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:46:09 +0000 (00:46 +0200)]
Slightly more consistent coding style.

9 years agoUnify logging a bit.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:45:39 +0000 (00:45 +0200)]
Unify logging a bit.

9 years agoThis comment does not really make any sense.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:42:14 +0000 (00:42 +0200)]
This comment does not really make any sense.

9 years agoAlways assume /root exists for root, instead of trying to go through hoops to expand ~.
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 ~.

9 years agoDelete lockfile on abort; we should try again automatically next night.
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.

9 years agoEnglishify a bit more.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:39:26 +0000 (00:39 +0200)]
Englishify a bit more.

9 years agoReindent everything, so that we are not stuck with two differing indentation levels...
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.

9 years agoEnglishify a bit.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:30:11 +0000 (00:30 +0200)]
Englishify a bit.

9 years agoreport.sh is no longer in use, so remove it.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:28:47 +0000 (00:28 +0200)]
report.sh is no longer in use, so remove it.

9 years agoSome minor cleanups.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:24:25 +0000 (00:24 +0200)]
Some minor cleanups.

9 years agoSupport native GNU tar incremental backups instead of using --newer.
Steinar H. Gunderson [Sat, 4 Oct 2014 22:21:49 +0000 (00:21 +0200)]
Support native GNU tar incremental backups instead of using --newer.

9 years agoRemove the $backuplevel = incremental test; nothing ever sets that value.
Steinar H. Gunderson [Sat, 4 Oct 2014 21:30:49 +0000 (23:30 +0200)]
Remove the $backuplevel = incremental test; nothing ever sets that value.

9 years agoUse pigz if it is available, for less CPU-bound operation.
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.

9 years agoWhen we run out of disk, do not count that as success.
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.

9 years agoRemove now-obsolete comment.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:52:07 +0000 (22:52 +0200)]
Remove now-obsolete comment.

9 years agoMake the error message when /backup is missing slightly better.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:50:30 +0000 (22:50 +0200)]
Make the error message when /backup is missing slightly better.

9 years agoRemove obsolete remotestat stuff.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:49:26 +0000 (22:49 +0200)]
Remove obsolete remotestat stuff.

9 years agoRemove the built-in forking support; take that from cron instead.
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.

9 years agoSpelling fixes.
Steinar H. Gunderson [Sat, 4 Oct 2014 20:37:28 +0000 (22:37 +0200)]
Spelling fixes.

9 years agoRemove useless TODO.
root [Sat, 4 Oct 2014 20:36:14 +0000 (22:36 +0200)]
Remove useless TODO.

9 years agoAdd files that were never in RCS.
root [Sat, 4 Oct 2014 20:14:48 +0000 (22:14 +0200)]
Add files that were never in RCS.

9 years agoMissing changes after RCS import.
root [Sat, 4 Oct 2014 20:14:03 +0000 (22:14 +0200)]
Missing changes after RCS import.

10 years agoAdd .lastbackup
root [Thu, 3 Oct 2013 12:40:42 +0000 (12:40 +0000)]
Add .lastbackup

11 years agoFix mkdir for glob behavior of newer bash.
root [Mon, 16 Jul 2012 11:13:49 +0000 (11:13 +0000)]
Fix mkdir for glob behavior of newer bash.

11 years agoFix behavior with newer tail.
root [Mon, 16 Jul 2012 11:12:44 +0000 (11:12 +0000)]
Fix behavior with newer tail.

11 years agoSome minor changes that were done without checking out from RCS.
root [Mon, 16 Jul 2012 11:12:01 +0000 (11:12 +0000)]
Some minor changes that were done without checking out from RCS.

13 years agoFix some Norwenglish.
root [Tue, 5 Oct 2010 00:23:07 +0000 (00:23 +0000)]
Fix some Norwenglish.

13 years agoTake backup at lowest possible (non-idle) CPU priority, and idle I/O priority.
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.

13 years agoAll of our machines use regular tar as tar now; remove the logic for changing the...
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.

14 years agoComment out debug statement that causes noise in cron mail
root [Wed, 13 Jan 2010 11:59:17 +0000 (11:59 +0000)]
Comment out debug statement that causes noise in cron mail

14 years agoImplement staggered full backup.
root [Sat, 5 Dec 2009 15:46:10 +0000 (15:46 +0000)]
Implement staggered full backup.

14 years agoFix outdated comment.
root [Sat, 5 Dec 2009 14:52:18 +0000 (14:52 +0000)]
Fix outdated comment.

14 years agoFix some evil && and || use.
root [Sat, 5 Dec 2009 14:47:31 +0000 (14:47 +0000)]
Fix some evil && and || use.

16 years agoUsing -k 2 rather than +2 for sorting by column 2
root [Thu, 3 Apr 2008 11:42:32 +0000 (11:42 +0000)]
Using -k 2 rather than +2 for sorting by column 2

16 years agoPID in lockfile, also prints when exists before run.
root [Thu, 14 Feb 2008 13:12:04 +0000 (13:12 +0000)]
PID in lockfile, also prints when exists before run.

16 years agoFix sdx/idx-filename
root [Mon, 14 Jan 2008 19:57:32 +0000 (19:57 +0000)]
Fix sdx/idx-filename

16 years agoPut PID of backup script in lockfile.
root [Sat, 22 Dec 2007 03:15:28 +0000 (03:15 +0000)]
Put PID of backup script in lockfile.

16 years agoTODOs fixed, known issues listed
root [Mon, 17 Dec 2007 21:24:34 +0000 (21:24 +0000)]
TODOs fixed, known issues listed

16 years agosdx is now sorted on file name
root [Mon, 17 Dec 2007 20:47:57 +0000 (20:47 +0000)]
sdx is now sorted on file name

16 years agowe use gzip
root [Mon, 17 Dec 2007 20:12:26 +0000 (20:12 +0000)]
we use gzip

16 years agonow uses pee instead of tee to speed up idx file creation
root [Mon, 17 Dec 2007 20:05:05 +0000 (20:05 +0000)]
now uses pee instead of tee to speed up idx file creation

16 years agoCosmetic cleanups: Better comments, logging and configuration variables readability
root [Mon, 17 Dec 2007 19:45:42 +0000 (19:45 +0000)]
Cosmetic cleanups: Better comments, logging and configuration variables readability

16 years agoLog in English
root [Mon, 17 Dec 2007 19:27:01 +0000 (19:27 +0000)]
Log in English

16 years agonow run backups in parallell again
root [Mon, 17 Dec 2007 19:14:03 +0000 (19:14 +0000)]
now run backups in parallell again

16 years agoAdded a few TODOs.
root [Sun, 16 Dec 2007 22:14:04 +0000 (22:14 +0000)]
Added a few TODOs.

16 years agofikset backupscript til å varsle dersom målfilesystemet tilfeldigvis er rot (/)
root [Fri, 17 Aug 2007 01:11:04 +0000 (01:11 +0000)]
fikset backupscript til å varsle dersom målfilesystemet tilfeldigvis er rot (/)

16 years agoLog to both stderr and stdout
root [Wed, 15 Aug 2007 15:10:14 +0000 (15:10 +0000)]
Log to both stderr and stdout

16 years agosort and tail now uses a slightly different syntax, as the old is deprecated in Etch
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

16 years agoCheck for non-zero tar file instead of errors from tar.
root [Wed, 15 Aug 2007 14:36:46 +0000 (14:36 +0000)]
Check for non-zero tar file instead of errors from tar.

16 years agoCorrect logic on evaluating and running {pre,post}exec
root [Tue, 31 Jul 2007 20:41:24 +0000 (20:41 +0000)]
Correct logic on evaluating and running {pre,post}exec

16 years agoImportant note
root [Sun, 29 Jul 2007 14:15:32 +0000 (14:15 +0000)]
Important note

16 years agoWarn on {pre,Ãpost}exec failures
root [Sun, 29 Jul 2007 14:14:00 +0000 (14:14 +0000)]
Warn on {pre,Ãpost}exec failures

16 years agocontinue er ikke det samme som break, nei.
root [Fri, 27 Jul 2007 12:43:05 +0000 (12:43 +0000)]
continue er ikke det samme som break, nei.

16 years agoStøtter nå å kjøre som ikke-root.
root [Fri, 27 Jul 2007 01:24:38 +0000 (01:24 +0000)]
Støtter nå å kjøre som ikke-root.

16 years agoting kjører i parallell
root [Thu, 26 Jul 2007 15:38:39 +0000 (15:38 +0000)]
ting kjører i parallell

16 years agoLots of log message fixing, now prints nothing on stdout when there's no errors
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

16 years agoLess forks!
root [Thu, 26 Jul 2007 13:47:07 +0000 (13:47 +0000)]
Less forks!
-berge

16 years agoBetter handling of return value.
root [Thu, 26 Jul 2007 02:57:59 +0000 (02:57 +0000)]
Better handling of return value.

16 years agoRemove lockfile on successful ending (-:
root [Thu, 26 Jul 2007 02:23:32 +0000 (02:23 +0000)]
Remove lockfile on successful ending (-:

16 years agoNow implements locking and catch of SIGINT and SIGTERM
root [Thu, 26 Jul 2007 02:22:12 +0000 (02:22 +0000)]
Now implements locking and catch of SIGINT and SIGTERM

16 years agoVarious bug fixes and improvements
root [Thu, 26 Jul 2007 02:11:06 +0000 (02:11 +0000)]
Various bug fixes and improvements
-berge

16 years agoDrop -c blowfish; it's slower than the default (AES).
sesse [Wed, 25 Jul 2007 17:46:26 +0000 (17:46 +0000)]
Drop -c blowfish; it's slower than the default (AES).

16 years agoUse --one-file-system instead of -l, since the latter stopped working in etch.
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.

16 years agoInitial revision
root [Wed, 25 Jul 2007 16:47:44 +0000 (16:47 +0000)]
Initial revision

16 years agoNow checks wether we actually can SSH to the computer we're backing up first.
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