mbn_18

bash escape

Nov 24th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. When running the following script I get:
  2.  
  3. Fatal Error: The file specification '/**
  4. cannot match any files in the base directory /full/path
  5. Useful file specifications begin with the base directory or some pattern (such as '**') which matches the base directory.
  6.  
  7. The command work as expected when executed from shell
  8.  
  9. #/bin/bash
  10. export FTP_PASSWORD="password"
  11. USERNAME="backup"
  12. DOMAIN="domain.com"
  13. CONTAINER="folder"
  14. ROOT_PATH="/full/path"
  15. export PASSPHRASE=passphrase
  16. #options="--exclude '**.tar.gz'"
  17.  
  18. duplicity $OPTIONS $ROOT_PATH gdocs://$USERNAME@$DOMAIN/$CONTAINER
  19. unset PASSPHRASE
  20. unset FTP_PASSWORD
Advertisement
Add Comment
Please, Sign In to add comment