mirror of
https://github.com/Qubes-Community/Contents.git
synced 2025-01-09 14:19:31 -05:00
Delete qvm-backup-to-appvm
This commit is contained in:
parent
0d96a49b32
commit
ae8d6b0d1d
@ -1,19 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# qvm-backup-to-appvm
|
|
||||||
# Version: 0.1
|
|
||||||
# Copy files from dom0 to an archive in an AppVM
|
|
||||||
# Usage : qvm-backup-to-appvm <Source> <AppVM> <Destination> <Archive>
|
|
||||||
# Example: qvm-backup-to-appvm ~/bin my-untrusted /home/user/backup backup.tgz
|
|
||||||
|
|
||||||
Source=$1
|
|
||||||
AppVM=$2
|
|
||||||
Destination=$3
|
|
||||||
Archive=`date +%Y.%m.%d-%H.%M`_$4
|
|
||||||
|
|
||||||
tar -cvzf /tmp/$Archive $Source
|
|
||||||
qvm-move-to-vm $AppVM /tmp/$Archive
|
|
||||||
echo "mv ~/QubesIncoming/dom0/$Archive $Destination && \
|
|
||||||
rm ~/QubesIncoming/dom0/qvm-backup_helperscript.sh" >> /tmp/qvm-backup_helperscript.sh
|
|
||||||
chmod +x /tmp/qvm-backup_helperscript.sh
|
|
||||||
qvm-move-to-vm $AppVM /tmp/qvm-backup_helperscript.sh
|
|
||||||
qvm-run $AppVM /home/user/QubesIncoming/dom0/qvm-backup_helperscript.sh
|
|
Loading…
Reference in New Issue
Block a user