Commit Graph

81 Commits

Author SHA1 Message Date
Daniel Berteaud
02ba5c0f1a Add an exclusive lock to be sure we correctly count the number of running backups
This also ensure only one LVM snapshot is created at a time, which is a good thing to prevent overloading the system
2018-10-22 18:31:03 +02:00
Daniel Berteaud
6adf94d537 Automatic commit of package [virt-backup] release [0.2.18-1].
Created by command:

/usr/bin/tito tag
2018-10-22 17:53:00 +02:00
Daniel Berteaud
6f0e9a2351 Add a max-backups param, to limit the numer of backups running at a time
GLPI #33827
2018-10-22 17:50:29 +02:00
Daniel Berteaud
c0a11dddfd Automatic commit of package [virt-backup] release [0.2.17-1].
Created by command:

/usr/bin/tito tag
2018-07-26 07:36:02 +02:00
Daniel Berteaud
495c575021 Wait longer after chunkfs umount
Or snapshot deletion might fail
2018-07-26 07:35:04 +02:00
Daniel Berteaud
a2dce22966 Automatic commit of package [virt-backup] release [0.2.16-1].
Created by command:

/usr/bin/tito tag
2018-07-09 10:53:24 +02:00
Daniel Berteaud
6d0239555f Fix typo (opt instead of opts) 2018-07-09 10:53:05 +02:00
Daniel Berteaud
d9fe8ebc2d Automatic commit of package [virt-backup] release [0.2.15-1].
Created by command:

/usr/bin/tito tag
2018-01-27 11:39:02 +01:00
Daniel Berteaud
5d799f95f9 Don't use double bracket for variable substitution, but double underscores 2018-01-27 11:38:33 +01:00
Daniel Berteaud
f8de4aa226 Automatic commit of package [virt-backup] release [0.2.14-1].
Created by command:

/usr/bin/tito tag
2018-01-08 16:43:23 +01:00
Daniel Berteaud
3242bb1a2b Add support for dumpcmd
With this new option, suggested and coded by Jan Schulz-Hofen <hi@jan.sh>, you can pipe the output of dd to a custom command which will consume the data through stdin. This new option is only valid with the dumpo action, and remove the need for a temporary file
2018-01-08 16:39:26 +01:00
Daniel Berteaud
aa3f2e01e9 Automatic commit of package [virt-backup] release [0.2.13-1].
Created by command:

/usr/bin/tito tag
2017-11-14 00:10:21 +01:00
Daniel Berteaud
602e17cc28 Remove now unused CHANGELOG.git 2017-11-14 00:09:36 +01:00
Daniel Berteaud
6266a457a3 Automatic commit of package [virt-backup] release [0.2.12-1].
Created by command:

/usr/bin/tito tag
2017-11-14 00:06:44 +01:00
Daniel Berteaud
3c1b49981c Add tito files 2017-11-14 00:06:17 +01:00
Daniel Berteaud
a528d6ba67 Initialized to use tito. 2017-11-14 00:05:19 +01:00
Daniel Berteaud
8236f121bf Spec file update 2015-11-25 11:06:25 +01:00
Daniel Berteaud
f2416113e5 Minor code/comment cleanup 2015-11-24 19:30:06 +01:00
Daniel Berteaud
c075f1417a Fix lvs path 2015-11-02 09:53:30 +01:00
Daniel Berteaud
31e9426a08 Small typo 2015-11-02 09:52:44 +01:00
Daniel Berteaud
126d8bac8b Try to auto detect thin volumes 2015-11-02 09:51:45 +01:00
Daniel Berteaud
bddbe716a7 Spec file update 2015-02-17 18:33:00 +01:00
Daniel Berteaud
9eb10f07d0 Reset disks list
So it dumps the correct disks when you backup several VM in one run
Patch by Diego Rondini <diego.rondini@kynetics.it>
2015-02-17 18:30:27 +01:00
Daniel Berteaud
c596ec15db Spec file update 2015-02-10 23:26:47 +01:00
Daniel Berteaud
2a88085d61 Fix path for image based disks stored on /
when LVM snapshots are used
2015-02-10 14:55:25 +01:00
Daniel Berteaud
bf888f40e2 Better error msg if lockdir doesn't exist 2015-02-10 12:34:53 +01:00
Daniel Berteaud
cd8e2a5bef Convert backupdir to an absolute path
Prevent cleanup faiklure if you use an relative path in combination with file based disks
Issue reported by Diego
2015-02-10 12:33:32 +01:00
Daniel Berteaud
207ad9eda9 Spec file update 2014-11-12 09:06:10 +01:00
Daniel Berteaud
0094010f05 Support thin volumes and snapshots
and allow alternative lock directory
2014-11-06 16:19:11 +01:00
Daniel Berteaud
352a4b357a Do not require pbzip2 2014-10-22 13:52:03 +02:00
Daniel Berteaud
bfc2e60d47 Spec file update 2014-06-23 13:21:27 +02:00
Daniel Berteaud
384bcd4587 Another message skiped if livebackup isn't possible and offline is disabled 2014-06-23 12:17:32 +02:00
Daniel Berteaud
f30ec3d649 Remove snpashots after dump for image based disks 2014-06-23 11:45:21 +02:00
Daniel Berteaud
9d26a80866 Add help for --no-offline
And exit early if --no-offline and --no-snapshot are both used
2014-06-23 11:35:39 +02:00
Daniel Berteaud
139ae9d993 Revert previous commit where we tried 30 times to take a snapshot
If it fails 10 times, it won't work
2014-06-23 11:24:50 +02:00
Daniel Berteaud
b7b5063982 Don't summarize disks if backup doesn't run 2014-06-23 11:22:27 +02:00
Daniel Berteaud
e86cff1db1 Add a --no-offline flag to fail if livebackup isn't possible 2014-06-23 10:53:01 +02:00
Daniel Berteaud
f25638e467 Spec file update 2014-06-23 10:25:07 +02:00
Daniel Berteaud
9993307d61 Fix breaking the loop while creating a snapshot 2014-06-04 12:39:26 +02:00
Daniel Berteaud
38c3328aa5 Spec file update 2014-06-03 10:06:06 +02:00
Daniel Berteaud
a4f65e3d78 Try up to 30 times to take the snapshot 2014-06-03 10:02:15 +02:00
Daniel Berteaud
abafa0a3b0 Spec file update 2014-05-02 10:49:37 +02:00
Daniel Berteaud
3a5ebf960e Fix create_snapshot if snapshoting failed even without a lock 2014-05-02 10:10:24 +02:00
Daniel Berteaud
31de73407c spec file update 2014-04-22 12:13:26 +02:00
Daniel Berteaud
d144e96880 Remove useless carriage return on debug output 2014-04-22 12:05:56 +02:00
Daniel Berteaud
c10e185207 Fix warning (readline on unopened filehandle) 2014-04-22 11:51:05 +02:00
Daniel Berteaud
6d8dd735fa Manage LVM locks
It's not possible de take 2 snapshot of the same LVM volume at the same time.
This is a problem when using a single file system (backed by a single LVM volume) to store
several VM as trying to run 2 backups at the same time will fail (at least, taking the snapshot for one will fail).

Add locking before taking a snapshot and wait up to 10 sec for the lock to be released. This should fix
concurrent backups
2014-04-22 10:22:20 +02:00
Daniel Berteaud
d715a0103e Spec file update 2014-01-30 12:56:57 +01:00
Daniel Berteaud
7554436d6d Add comments for the shutdown and shutdowntimeout variables, and other minor fixes 2014-01-30 12:04:49 +01:00
Daniel Berteaud
3135bff066 Gracefully handle LVM snapshot error with file based disk: just like with block, warn and disable the live backup, but do not fail 2014-01-30 11:51:38 +01:00