summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-backup
blob: 25e74a451c9e17a901fb900c56aae73a949713b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;