bash - Creating incremental backup with tar - --listed-incremental -g -
i have problem tar linux program. create incremental backup. use following tar command first full backup:
tar --create --gzip --listed-incremental=$savedir/backup.snar --file=$savedir/$date.tar.gz $exclude $directory
$exclude
contains example "--exclude test/testdir --exclude test/testdir2"
$directory
contains "-c /users/user1/desktop/ test"
if execute command following error:
tar: option --listed-incremental=/users/hofmeister/desktop/test/backup.snar not supported usage: list: tar -tf <archive-filename> extract: tar -xf <archive-filename> create: tar -cf <archive-filename> [filenames...] help: tar –help
if change --listed-incremental
option -g =$savedir/backup.snar
. get:
usage: list: tar -tf <archive-filename> extract: tar -xf <archive-filename> create: tar -cf <archive-filename> [filenames...] help: tar --help
what went wrong? use following version of tar: bsdtar 2.8.3 - libarchive 2.8.3
the problem tar version bsd. macports install gnutar. here works fine!
looks you're using bsdtar
, , not gnu tar
. bsdtar
doesn't support incremental backups. have different flags too.
Comments
Post a Comment