diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-16 01:02:52 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-16 01:02:52 -0400 |
commit | e0d68130087c1ee843e01d8cfebe0c12181c5ed9 (patch) | |
tree | ef7786236e9c85f6da735099a3a31417511222f8 | |
parent | 845fb2d60585be5567ac10aa0a53ab45c628648c (diff) | |
download | keysafe-e0d68130087c1ee843e01d8cfebe0c12181c5ed9.tar.gz |
don't include path in tarball
-rw-r--r-- | ServerBackup.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ServerBackup.hs b/ServerBackup.hs index 9506ccf..1ef3fdd 100644 --- a/ServerBackup.hs +++ b/ServerBackup.hs @@ -29,7 +29,7 @@ genBackup lsd d = do topdir <- storageTopDir lsd createDirectoryIfMissing True d dest <- backupFile d <$> getPOSIXTime - callCommand ("tar c " ++ topdir ++ " | gpg --encrypt --default-recipient-self > " ++ dest) + callCommand ("tar -C " ++ topdir ++ " c . | gpg --encrypt --default-recipient-self > " ++ dest) -- Keep the past 7 backup files, in case an object file somehow -- gets deleted, this avoids the backup losing it too. -- These backup files can be used to determine eg, what day |