diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-04-08 15:57:00 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-04-08 15:57:00 -0500 |
commit | 024ebf9e47096a92f7eaff8687231f5f81285330 (patch) | |
tree | 0926ae5bdac10dced9b22f9f595b1ecd4e23aeae /FS/bin/freeside-backup | |
parent | 328e2e3bc40c6aef5a8bc5984f837cac2d8e95af (diff) | |
parent | c464d2c65c63ab05f306dad9d718e1eb49e42851 (diff) |
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'FS/bin/freeside-backup')
-rw-r--r-- | FS/bin/freeside-backup | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/FS/bin/freeside-backup b/FS/bin/freeside-backup new file mode 100644 index 000000000..25e74a451 --- /dev/null +++ b/FS/bin/freeside-backup @@ -0,0 +1,42 @@ +#!/usr/bin/perl -w + +use strict; +use Getopt::Std; +use FS::UID qw(adminsuidsetup); +use FS::Conf; + +my $user = shift or die &usage; +adminsuidsetup $user; + +#you can skip this just by not having the config +use FS::Cron::backup qw(backup); +backup(); + +sub usage { + die "Usage:\n\n freeside-backup user\n"; +} + +### +# documentation +### + +=head1 NAME + +freeside-backup - Runs a backup + +=head1 SYNOPSIS + + freeside-backup user + +=head1 DESCRIPTION + +Runs a backup. See the dump-scpdest and dump-localdest configuration options. + +=head1 BUGS + +=head1 SEE ALSO + +=cut + +1; + |