config.example.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This file contains the default options when running the program without
  2. # parameters. Most of these can be override using command line parameters
  3. # Run "python plain_inc_bak.py --help" to see them.
  4. DRY_RUN = False
  5. # The base or root directory to backup. Subdirectories will be included,
  6. # except the ones in EXCLUDE
  7. ORIGIN = '/'
  8. # Directory where the backups will be stored
  9. BACKUPS_DIR = '/backups'
  10. # Name of the backup directories. A .# with a number will be appended, with 0 being
  11. # the most recent one
  12. BACKUP_BASENAME = 'backup'
  13. # Maximum number of incremental backups to keep. When this number is reached, the
  14. # oldest backup will be deleted before rotating the others
  15. MAX_BACKUPS = 5
  16. # Exclude directories. Please include BACKUPS_DIR or funny things could happen
  17. EXCLUDE = [
  18. '/dev', '/proc', '/sys', '/tmp', '/run', '/mnt', '/media',
  19. '/lost+found', '/cdrom', '/var/cache/apt/archives', '/var/crash',
  20. '/var/lib/lxcfs',
  21. BACKUPS_DIR
  22. ]
  23. # Email settings - pretty self explanatory
  24. EMAIL_REPORT = False
  25. # Currently the program uses a sendmail style binary to send the emails. SMTP is not supported
  26. EMAIL_PROGRAM = '/usr/sbin/sendmail'
  27. EMAIL_FROM = 'Backup System <noreply@example.com>'
  28. EMAIL_DEST = 'your@email.com'
  29. # S3 Upload settings
  30. # Note: this wont delete old files. Use the bucket Property Lifecycle->Rules to add
  31. # a rule to delete the files after a certain time (like 30 days).
  32. S3_UPLOAD_ENABLED = False
  33. S3_BUCKET = "bucket-name"
  34. # AWS access and secret keys. Please dont use your root credentials if you
  35. # have them but create an IAM user with read/write access to S3 only.
  36. S3_ACCESS_KEY = 'YOURKEY'
  37. S3_SECRET_KEY = 'YOURSECRET'
  38. # This will enable gpg encryption of the backup before uploading
  39. S3_GPG_ENCRYPT = True
  40. # Passphrase to use for encrypting. Choose a strong one and dont lose it
  41. S3_GPG_PASSPHRASE = 'some_strong_password'