]>
arthur.barton.de Git - backup-script.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Alexander Barton [Tue, 18 Aug 2015 07:58:13 +0000 (09:58 +0200)]
backup-script-wrapper: Use "exec" to redirect output
Alexander Barton [Tue, 18 Aug 2015 07:49:35 +0000 (09:49 +0200)]
backup-script-wrapper: Better detect default mail recipient
Use "logcheck" if an user exists by this name, or if an alias is defined
in /etc/aliases. Use "root" otherwise.
Alexander Barton [Tue, 18 Aug 2015 07:41:58 +0000 (09:41 +0200)]
backup-script-wrapper: Correctly quote external command call
Alexander Barton [Tue, 18 Aug 2015 07:41:31 +0000 (09:41 +0200)]
backup-script-wrapper: Update copyright notice for 2015 :-)
Alexander Barton [Tue, 11 Aug 2015 12:59:14 +0000 (14:59 +0200)]
Make sure that "target" does NOT end with a slash ("/")
Alexander Barton [Tue, 11 Aug 2015 12:59:02 +0000 (14:59 +0200)]
Make sure that "source" does end with a slash ("/")
Alexander Barton [Tue, 4 Aug 2015 12:10:30 +0000 (14:10 +0200)]
ZFS: Use correct date for snapshot names
Don't use the current time, but the time of the (last) backup.
Alexander Barton [Tue, 4 Aug 2015 09:37:58 +0000 (11:37 +0200)]
Fix "new snapshot" log messages in "trial run" mode
Alexander Barton [Mon, 3 Aug 2015 14:25:40 +0000 (16:25 +0200)]
Move Makefile.ax into new lib/ directory
Alexander Barton [Mon, 3 Aug 2015 14:23:56 +0000 (16:23 +0200)]
Create individual Makefile's for all subdirectories
Alexander Barton [Wed, 29 Jul 2015 20:28:16 +0000 (22:28 +0200)]
etc/backup-script.conf: add "default_target"
Alexander Barton [Wed, 29 Jul 2015 19:37:13 +0000 (21:37 +0200)]
Update README.md, including spelling fixes
Alexander Barton [Wed, 29 Jul 2015 10:57:20 +0000 (12:57 +0200)]
Delay script exit for 3 seconds on abort
This allows things (like the rsync server process) to settle a
little bit ...
Alexander Barton [Wed, 29 Jul 2015 10:56:16 +0000 (12:56 +0200)]
backup-status: Fix handling of "current" snapshot on ZFS
Alexander Barton [Wed, 29 Jul 2015 10:38:29 +0000 (12:38 +0200)]
backup-status: Correctly get size of directories pointed to by symlinks
Alexander Barton [Wed, 29 Jul 2015 10:31:58 +0000 (12:31 +0200)]
Add support for generations on ZFS
Alexander Barton [Wed, 29 Jul 2015 10:15:54 +0000 (12:15 +0200)]
Fix filesystem detection in DeleteSubvolume()
Alexander Barton [Wed, 29 Jul 2015 08:41:37 +0000 (10:41 +0200)]
Create the system directory as subvolume when using generations
This is required for ZFS in the future and shouldn't be a problem on btrfs.
Alexander Barton [Wed, 29 Jul 2015 08:39:24 +0000 (10:39 +0200)]
Introduce Initialize_Last_SysTarget_Snapshot() function
This is in preparation for ZFS support.
Alexander Barton [Wed, 29 Jul 2015 08:35:30 +0000 (10:35 +0200)]
Add compatibility layer for backup-pull(1) config files
The following (now deprecated!) configurations variables used by the
backup-pull(1) script in job definition files are automatically mapped to
the new backup-script variables:
- host -> system
- source -> source_root
- pre_exec -> job_pre_exec
- post_exec -> job_post_exec
Alexander Barton [Wed, 29 Jul 2015 08:34:07 +0000 (10:34 +0200)]
README: Add description for "[default_]source_root"
Alexander Barton [Wed, 29 Jul 2015 08:31:05 +0000 (10:31 +0200)]
CloneSubvolume: Introduce $snapshot parameter
This is in preparation for ZFS support.
Alexander Barton [Wed, 29 Jul 2015 08:28:44 +0000 (10:28 +0200)]
Use correct counter when checking which generations to delete
In
a18f7fb9 we fixed the counter, but up to now didn't use the
correct counter at all :-/
Alexander Barton [Wed, 29 Jul 2015 08:27:14 +0000 (10:27 +0200)]
Declare function variables as "local"
Alexander Barton [Mon, 27 Jul 2015 16:50:11 +0000 (18:50 +0200)]
Little whitespace fixes ;-)
Alexander Barton [Mon, 27 Jul 2015 16:49:56 +0000 (18:49 +0200)]
Correctly count the number of available generations
Add 2 to the number of desired snapshots, because of the "latest" link
and the current snapshot.
Alexander Barton [Mon, 27 Jul 2015 16:48:25 +0000 (18:48 +0200)]
Don't add "--rsh=..." to rsync command line in "local" mode
Alexander Barton [Mon, 27 Jul 2015 16:45:27 +0000 (18:45 +0200)]
Add support for new "[default_]source_root" variable
You can use this variable to define the "source root path".
Default is "/", which was the hardcoded value up to now.
Alexander Barton [Mon, 27 Jul 2015 16:43:35 +0000 (18:43 +0200)]
{Create|Clone|Rename|Delete}Subvolume: Prepare for multiple FS
Currently only btrfs is supported, but support for ZFS is planned.
Introduce GetFS() function to detect the file system type.
Alexander Barton [Mon, 27 Jul 2015 16:41:31 +0000 (18:41 +0200)]
CreateSubvolume(): Fix wrong positional parameter number
Alexander Barton [Mon, 27 Jul 2015 13:08:55 +0000 (15:08 +0200)]
Fix some variable quoting
This fixes some warnings of shellcheck(1).
Alexander Barton [Mon, 27 Jul 2015 13:08:26 +0000 (15:08 +0200)]
Use $() instead of ``
This fixes some warnings of shellcheck(1).
Alexander Barton [Mon, 27 Jul 2015 13:02:11 +0000 (15:02 +0200)]
Move subvolume handling to individual functions
This allows us to support different storage backends/filesystems
in the future.
Alexander Barton [Tue, 2 Jun 2015 10:21:05 +0000 (12:21 +0200)]
Fix "backup-status" to respect "system" configuration variable
Alexander Barton [Tue, 2 Jun 2015 10:15:30 +0000 (12:15 +0200)]
README.md: Add introduction and copyright information
Alexander Barton [Tue, 2 Jun 2015 10:11:21 +0000 (12:11 +0200)]
Add README.md file
Alexander Barton [Tue, 12 May 2015 09:32:01 +0000 (11:32 +0200)]
Don't detect "latest" symlink as latest backup generation
Problem introduced by commit
f31ea55373 ('Create "latest" link to
latest generation').
Alexander Barton [Tue, 12 May 2015 08:46:58 +0000 (10:46 +0200)]
backup-status: Correctly show sizes on non-Linux systems
And ignore the current locale when calling "stat".
Tested with OS X/Darwin and Linux.
Alexander Barton [Tue, 12 May 2015 08:34:10 +0000 (10:34 +0200)]
backup-status: Fix wrong path in size calculation
When no snapshots are being used, the wrong path name has been
passed to the Check_Size function.
Alexander Barton [Tue, 12 May 2015 08:33:09 +0000 (10:33 +0200)]
backup-status: Handle "conf_d" variable in backup-script.conf
Alexander Barton [Thu, 16 Apr 2015 12:58:32 +0000 (14:58 +0200)]
Create "latest" link to latest generation
Alexander Barton [Thu, 16 Apr 2015 12:58:04 +0000 (14:58 +0200)]
Introduce internal "sys_root" variable
Alexander Barton [Thu, 26 Feb 2015 13:50:06 +0000 (14:50 +0100)]
Implement "{default_}job_pre_exec" and "{default_}job_post_exec"
When the pre-exec command returns non 0, the backup job will be
skipped and listed as failed (which results in the "there have been
errors" summy); if it returns 99, the backup job is skipped but NOT
accounted as failed.
The exit code of the post-exec command is ignored.
Alexander Barton [Thu, 26 Feb 2015 13:42:37 +0000 (14:42 +0100)]
Fix error handling if target directory can't be created
Alexander Barton [Thu, 26 Feb 2015 13:07:34 +0000 (14:07 +0100)]
Update copyright notice
Alexander Barton [Thu, 27 Nov 2014 12:14:23 +0000 (13:14 +0100)]
Fix message "working on ..." for local system
Alexander Barton [Mon, 17 Nov 2014 16:59:37 +0000 (17:59 +0100)]
Don't modify /etc directory on "make install"
Alexander Barton [Mon, 17 Nov 2014 16:57:45 +0000 (17:57 +0100)]
Use "conf_d" variable to set configuration directory
Now one can set "conf_d" to an arbitrary directory in /etc/backup-script.conf
(or its older location /etc/backup-script.d/backup-script.conf).
Alexander Barton [Mon, 17 Nov 2014 16:52:24 +0000 (17:52 +0100)]
Read /etc/backup-script.conf as configureation file, too
Alexander Barton [Mon, 17 Nov 2014 16:32:40 +0000 (17:32 +0100)]
Add AUTHORS file
Alexander Barton [Mon, 17 Nov 2014 16:31:56 +0000 (17:31 +0100)]
Use ax-make
Alexander Barton [Thu, 24 Jul 2014 09:19:15 +0000 (11:19 +0200)]
backup-status: Clarify warning message
Alexander Barton [Thu, 24 Jul 2014 09:14:28 +0000 (11:14 +0200)]
backup-script-wrapper: Correctly quote "$TMP" variable
Alexander Barton [Thu, 24 Jul 2014 09:13:33 +0000 (11:13 +0200)]
backup-script-wrapper: Use "mktemp" to generate temporary file
This is much saver and generates correctly restricted permissions.
Alexander Barton [Sun, 19 Jan 2014 13:19:15 +0000 (14:19 +0100)]
Implement cleaning up of outdated generations
Alexander Barton [Fri, 15 Nov 2013 10:20:56 +0000 (11:20 +0100)]
backup-status: "quick" mode is "-q", not "-p"!
Alexander Barton [Thu, 24 Oct 2013 08:38:07 +0000 (10:38 +0200)]
backup-script-wrapper: allow MAILTO to be set externally
Alexander Barton [Tue, 22 Oct 2013 07:41:12 +0000 (09:41 +0200)]
Fix usage: --dry-run equals -n (not -d)
Alexander Barton [Mon, 30 Sep 2013 11:55:45 +0000 (13:55 +0200)]
backup-status: enhance status messages
Alexander Barton [Mon, 30 Sep 2013 11:46:01 +0000 (13:46 +0200)]
Add header to generated mail text
Alexander Barton [Mon, 30 Sep 2013 11:45:32 +0000 (13:45 +0200)]
Set PATH to contain standard elements; call backup-script in same path
Alexander Barton [Thu, 26 Sep 2013 16:45:17 +0000 (18:45 +0200)]
Use system "id" (filename) as target directory name
Alexander Barton [Thu, 26 Sep 2013 16:33:22 +0000 (18:33 +0200)]
Add support for generations using btrfs snapshots
Actually this patch lacks the cleanup functionality, so you have to
delete old snapshots manually. But this will come in a separate patch!
Alexander Barton [Thu, 26 Sep 2013 16:03:02 +0000 (18:03 +0200)]
Autodetect "localhost" and 127.0.0.1 as being "local"
Alexander Barton [Thu, 26 Sep 2013 15:44:40 +0000 (17:44 +0200)]
Allow overriding of "system" variable
Alexander Barton [Thu, 26 Sep 2013 13:11:10 +0000 (15:11 +0200)]
Don't remove "stamp file" in trial mode
Alexander Barton [Thu, 26 Sep 2013 13:06:48 +0000 (15:06 +0200)]
Enhance information messages
Alexander Barton [Thu, 26 Sep 2013 13:06:19 +0000 (15:06 +0200)]
Don't show storage summary in trial mode
Alexander Barton [Thu, 26 Sep 2013 13:00:49 +0000 (15:00 +0200)]
Remove calls to already removed Log function
Alexander Barton [Thu, 26 Sep 2013 12:33:55 +0000 (14:33 +0200)]
Make sure "system target directory" exists and is valid
Alexander Barton [Thu, 26 Sep 2013 12:23:54 +0000 (14:23 +0200)]
Remove Message, MessageLog, and Log functions; use "echo"
Alexander Barton [Tue, 24 Sep 2013 10:44:00 +0000 (12:44 +0200)]
Add /run to hardcoded exclude list
Alexander Barton [Tue, 24 Sep 2013 10:10:48 +0000 (12:10 +0200)]
Adjust list of hardcoded excluded directories
Only hardcode directories that never(!) make sense to backup, and introduce
new configuration variables "exclude_args_add" (for system configurations)
and "default_exclude_args_add" (for backup-script.conf) to set apropriate
settings and defaults for the local installation.
Now the following directories are always excluded:
/dev, /proc/, /sys/, /tmp, /var/tmp, /media, /mnt, /net, /var/cache/apt,
and /var/log.
Alexander Barton [Tue, 24 Sep 2013 10:25:47 +0000 (12:25 +0200)]
Allow setting more defaults in backup-script.conf
The following variables can be used in backup-script.conf now:
pre_exec
post_exec
default_target
default_user
default_ssh_args_add
default_rsync_args_add
default_compress
default_ping
default_local
Alexander Barton [Tue, 24 Sep 2013 10:01:10 +0000 (12:01 +0200)]
Implement "--dry-run" ("-d") command line option
Alexander Barton [Tue, 24 Sep 2013 09:00:02 +0000 (11:00 +0200)]
Use an exclamation mark for "system skipped" messages on errors
Alexander Barton [Tue, 24 Sep 2013 08:59:17 +0000 (10:59 +0200)]
Implement --progress option (same as -p)
Alexander Barton [Mon, 23 Sep 2013 15:32:10 +0000 (17:32 +0200)]
Add Makefile
Alexander Barton [Wed, 8 May 2013 10:03:35 +0000 (12:03 +0200)]
backup-status: enhance output messages
Alexander Barton [Wed, 8 May 2013 09:51:03 +0000 (11:51 +0200)]
backup-status: use /bin/bash
Alexander Barton [Wed, 8 May 2013 09:35:23 +0000 (11:35 +0200)]
Add "backup-script.{pre|post}-exec" example scripts
Alexander Barton [Wed, 8 May 2013 09:33:40 +0000 (11:33 +0200)]
Add "backup-status" script
Alexander Barton [Wed, 8 May 2013 09:18:13 +0000 (11:18 +0200)]
New configuration options "user" and "target"
Alexander Barton [Wed, 8 May 2013 09:17:08 +0000 (11:17 +0200)]
Allow handling of more than one target system at once
Alexander Barton [Wed, 4 May 2011 15:47:26 +0000 (17:47 +0200)]
New config option "ping"
Default ist "1", ping the remote host to check if it is alive.
Set to "0" to always force rsync(1) to start.
Alexander Barton [Wed, 4 May 2011 15:47:07 +0000 (17:47 +0200)]
Execute rsync command using a subshell
Alexander Barton [Wed, 4 May 2011 15:40:41 +0000 (17:40 +0200)]
New config option "ssh_args_add"
Alexander Barton [Wed, 4 May 2011 15:31:20 +0000 (17:31 +0200)]
Added copyright notices; removed in-file history
Alexander Barton [Wed, 4 May 2011 15:28:51 +0000 (17:28 +0200)]
Initial commit