backupninja/handlers
Fabian Raab a2646868b3 Create path hirarchy of source path automatically in destination
Before it was only possible to backup root directories (depth one, eg.
/etc, /var, /usr, …). For example consider the following truncated toy
configuration for rsync:

    [general]
    mountpoint = /media/
    backupdir = backup
    [source]
    include = /foo/bar
    include = /etc

We assume you have prepared the existent but empty base-directory
/media/backup/ at your destination, then against the expectation, the
following error rises:

    rsync: mkdir "/media/backup/foo/bar/" failed: No such file or directory (2)

The reason is that rsync will take the files from the folder /foo/bar/
and tries to put them into the ulitmate – and therefore existent –
destination /media/backup/foo/bar. This is not what you would expect,
since the prepared directory /media/backup exists and the application
should create the rest itself.

This Merge Request adds a little script which creates the required
directories in the destination before running rsync. It assumes that
the base-directory already exists, so that not too much directories
are created automatically (could be a mess if you accidentally type the
wrong path)
2021-01-06 20:49:44 -05:00
..
borg.helper.in handlers/borg: add port support 2020-07-16 08:38:46 +00:00
borg.in borg: improve destination checks 2021-01-03 14:31:12 -05:00
dsync.in dsync: the dsync handler incorrectly would test for >3 failures before 2015-03-30 12:23:50 -04:00
dup.helper.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
dup.in dup: streamline encryption and signing logic 2021-01-05 11:00:54 -05:00
ldap.helper.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
ldap.in Quote command output strings passed to logging functions. 2018-01-10 10:44:33 +00:00
maildir.in remove rsyncflags and excludes from maildir handler, they are not used anywhere 2012-03-27 11:58:18 -04:00
makecd.helper.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
makecd.in Enable use of ionice for all handlers to alleviate IO load 2020-12-31 02:08:50 -05:00
Makefile.am [borg] update handlers/Makefile.am 2018-01-26 09:43:58 -05:00
mysql.helper.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
mysql.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
pgsql.helper.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
pgsql.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
rdiff.helper.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
rdiff.in rdiff: add extra sanity check for keep parameter 2021-01-06 11:33:58 -05:00
rsync.in Create path hirarchy of source path automatically in destination 2021-01-06 20:49:44 -05:00
sh.in Allow 'when = XXX' in sh jobs. 2011-08-17 12:15:37 +02:00
svn.in Remove remaining vserver bits 2021-01-03 12:07:56 -05:00
sys.helper.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
sys.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
tar.helper.in xz support for tar handler 2013-06-28 09:08:39 +02:00
tar.in Remove vserver support (fixes #11289) 2021-01-02 15:27:32 -05:00
trac.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
wget Enable use of ionice for all handlers to alleviate IO load 2020-12-31 02:08:50 -05:00