Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .PHONY: backup
- backup: mount
- @export id="`novacom -w run file://bin/cat -- /proc/nduid | cut -c 1-8`" ; \
- mkdir -p clones/$$id ; \
- echo "Creating clones/$$id/tokens.txt" ; \
- novacom -w run file://sbin/tokens -- --list > clones/$$id/tokens.txt ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.nvram.bin" ; \
- ( novacom -w run file://bin/dd -- if=/dev/${NVRAM_PARTITION} ) > \
- clones/$$id/${CUSTIMAGEOLD}.nvram.bin ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.varfs.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/var/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.varfs.tar.gz ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.rootfs.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/root/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.rootfs.tar.gz ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.boot.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/boot/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.boot.tar.gz ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.mojodb.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/mojodb/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.mojodb.tar.gz ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.filecache.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/filecache/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.filecache.tar.gz ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.log.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/log/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.log.tar.gz ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.update.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/update/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.update.tar.gz ; \
- echo "Creating clones/$$id/${CUSTIMAGEOLD}.media.tar.gz" ; \
- ( novacom -w run file://bin/tar -- -C /tmp/media/ --totals -cf - . ) | \
- gzip -c > clones/$$id/${CUSTIMAGEOLD}.media.tar.gz ; \
Add Comment
Please, Sign In to add comment