-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alan Young wrote: > I've got a cron job running a backup every night. It's a shell script > that looks like this: > > ----- > #!/bin/bash > > cd /backup > > tar -czf webstoresDoc.tgz -C / /home/www/docroot/webstores > ----- > > It works fine, but I keep getting the following email from the cron process: > > ----- > tar: Removing leading `/' from member names > tar: Removing leading `/' from member names
Just remove the leading / yourself. -C / will change directories before tar starts reading files, so this will clear up your warning: tar -czf webstoresDoc.tgz -C / home/www/docroot/webstores Corey -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpl+MwACgkQwNwjtxfqOkPBwQCfaaH93QB0/qB7PocPmJhTzKHh jXYAmwTX7+siipnIuKkhewqE7xgP4Tq7 =VK/f -----END PGP SIGNATURE----- /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
