Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- create-incremental
- #!/bin/bash
- DATESTAMP=$(date +'%Y%m%d%H%M%S')
- SOURCE=$1
- cp snapshot.file /tmp/snapshot.file
- tar -g "/tmp/snapshot.file" -czphf "backup.$DATESTAMP.tar.gz" "$SOURCE"
- mv /tmp/snapshot.file snapshot.file
- #######################################################################
- extract-incremental
- #!/bin/bash
- SOURCE=$1
- for file in $SOURCE/*.tar.gz ; do
- tar --listed-incremental=/dev/null -xzvf $file
- done
RAW Paste Data

