Has anyone got the same message?
tar: --exclude=matrix-2005-11-15_16-28-backup.tar: Could not stat: No such file or directory
tar: --exclude=./cache/: Could not stat: No such file or directory
tar: --exclude=matrix--backup.tar*: Could not stat: No such file or directory
Unable to create tarball ./matrix-2005-11-15_16-28-backup.tar.
Aborting.
:blink:
Sounds like you're not running backup.sh from the Matrix root folder.
I get this message aswell. Even if the backup is complete.
[quote]Sounds like you’re not running backup.sh from the Matrix root folder.
[right][post=“7566”]<{POST_SNAPBACK}>[/post][/right][/quote]
Nope running the backup.sh from the root of the matrix installation…
Calling it using /bin/sh backup.sh
And the same for me… Running the script from Matrix root.
What OS are you using? Linux or Solaris? If you're using Solaris, you might want to check that you're using GNU/Tar instead of the tar that ships with Solaris.
[quote]What OS are you using? Linux or Solaris? If you’re using Solaris, you might want to check that you’re using GNU/Tar instead of the tar that ships with Solaris.
[right][post=“7596”]<{POST_SNAPBACK}>[/post][/right][/quote]
Well I am using:
FreeBSD 5.4-RELEASE (GENERIC) #0: Sun May 8 10:21:06 UTC 2005
bsdtar 1.01.020
libarchive 1.02.006
as at the bottom of output when I entered tar --help
My guess (not being a FreeBSD guru) is that bsdtar is not GNU/Tar compliant. You may have to rewrite the tar command in the backup.sh script for that platform.
It’s not GNU Tar.
http://www.freebsd.org/cgi/man.cgi?query=tar&sektion=1
Hey guys got the back-up script working on BSD…
Change the TAR creation line in the backup.sh script to
tar -C `dirname ${SYSTEM_ROOT}` -cv --exclude=${backupfilename} --exclude=${SYSTEM_ROOT}/cache/* --exclude=matrix-*-backup.tar* -f ${backupdir}/${backupfilename} `basename ${SYSTEM_ROOT}`The exclude statements need to be before the created filename for it to work.
Then I ran:
./backup.sh ../matrix-backup/mydump.tar
and all worked.....
[quote]It's not GNU Tar.
http://www.freebsd.org/cgi/man.cgi?query=tar&sektion=1
[right][post="7606"]<{POST_SNAPBACK}>[/post][/right][/quote]