[freeside-commits] branch FREESIDE_3_BRANCH updated. 27f89917927f34366c45318c11c7c90fa2543d5b
Jeremy Davis
jeremyd at 420.am
Tue Apr 7 06:12:13 PDT 2015
The branch, FREESIDE_3_BRANCH has been updated
via 27f89917927f34366c45318c11c7c90fa2543d5b (commit)
from 1f5fc658a659923e86ea6b9b6ab18e8c8aeec7ca (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 27f89917927f34366c45318c11c7c90fa2543d5b
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Mon Apr 6 16:09:24 2015 -0400
freeside-backup
diff --git a/FS/bin/freeside-backup b/FS/bin/freeside-backup
new file mode 100644
index 0000000..25e74a4
--- /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;
+
-----------------------------------------------------------------------
Summary of changes:
{bin => FS/bin}/freeside-backup | 0
1 file changed, 0 insertions(+), 0 deletions(-)
copy {bin => FS/bin}/freeside-backup (100%)
More information about the freeside-commits
mailing list