From 8cffdea41f017d0d318eee8a060e067dd0028318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 9 Nov 2013 18:57:26 +0100 Subject: [PATCH] backup: move qubes.{Backup,Restore} services to core-agent-linux repo --- qubes-rpc/qubes.Backup | 23 ----------------------- qubes-rpc/qubes.Restore | 23 ----------------------- 2 files changed, 46 deletions(-) delete mode 100644 qubes-rpc/qubes.Backup delete mode 100644 qubes-rpc/qubes.Restore diff --git a/qubes-rpc/qubes.Backup b/qubes-rpc/qubes.Backup deleted file mode 100644 index 6e3f1d48..00000000 --- a/qubes-rpc/qubes.Backup +++ /dev/null @@ -1,23 +0,0 @@ -echo Starting Backupcopy -read args -echo Arguments: $args -if [ -d "$args" ] ; then - echo "Performing backup to directory $args" - TARGET="$args/qubes-backup-`date +'%Y-%d-%d-%H%M%S'`" - echo "Copying STDIN data to $TARGET" - cat > $TARGET -else - echo "Checking if arguments is matching a command" - COMMAND=`echo $args | cut -d ' ' -f 1` - TYPE=`type -t $COMMAND` - if [ "$TYPE" == "file" ] ; then - echo "Redirecting STDIN to $args" - # Parsing args to handle quotes correctly - # Dangerous method if args are uncontrolled - eval "set -- $args" - $@ - else - echo "Invalid command $COMMAND" - exit 1 - fi -fi diff --git a/qubes-rpc/qubes.Restore b/qubes-rpc/qubes.Restore deleted file mode 100644 index 96a76e53..00000000 --- a/qubes-rpc/qubes.Restore +++ /dev/null @@ -1,23 +0,0 @@ -echo Starting Restorecopy >2 -read args -echo Arguments: $args >2 -if [ -f "$args" ] ; then - echo "Performing restore from backup file $args" >2 - TARGET="$args" - echo "Copying $TARGET to STDOUT" >2 - cat $TARGET | /usr/lib/qubes/tar2qfile -else - echo "Checking if arguments is matching a command" >2 - COMMAND=`echo $args | cut -d ' ' -f 1` - TYPE=`type -t $COMMAND` - if [ "$TYPE" == "file" ] ; then - echo "Redirecting $args to STDOUT" >2 - # Parsing args to handle quotes correctly - # Dangerous method if args are uncontrolled - eval "set -- $args" - $@ - else - echo "Invalid command $COMMAND" >2 - exit 1 - fi -fi