[freeside-commits] branch master updated. e34541531eb37fe02b33c614cd9c48b7638347f2

Jeremy Davis jeremyd at 420.am
Tue Apr 7 06:11:07 PDT 2015


The branch, master has been updated
       via  e34541531eb37fe02b33c614cd9c48b7638347f2 (commit)
      from  9cfdddf49df7d5f47691ca467d9fbae51bfd71a0 (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 e34541531eb37fe02b33c614cd9c48b7638347f2
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Mon Apr 6 16:08:05 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