Skip to content

Commit

Permalink
Escape quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pegasus-RPG authored May 11, 2018
1 parent 476bbbb commit 22dc134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def snapshot(snapshot_name=None):
wiki_path = os.path.join(instance_path, 'wiki')
wiki_snapshot = 'wiki.tar.bz2'
# Exclusions to save space & time per https://www.dokuwiki.org/faq:backup
sudo('tar --exclude='data/cache' --exclude='data/index' --exclude='data/locks' --exclude='data/tmp' -cjpf {} -C {} .'.format(wiki_snapshot, wiki_path))
sudo('tar --exclude=\'data/cache\' --exclude=\'data/index\' --exclude=\'data/locks\' --exclude=\'data/tmp\' -cjpf {} -C {} .'.format(wiki_snapshot, wiki_path))

# Record snapshot name for chaining commands.
env.snapshot_name = snapshot_name
Expand Down

0 comments on commit 22dc134

Please sign in to comment.