faq.rst 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .. _faq:
  2. .. include:: global.rst.inc
  3. Frequently asked questions
  4. ==========================
  5. Which platforms are supported?
  6. Currently Linux, FreeBSD and MacOS X are supported.
  7. You can try your luck on other POSIX-like systems, like Cygwin,
  8. other BSDs, etc. but they are not officially supported.
  9. Can I backup VM disk images?
  10. Yes, the :ref:`deduplication <deduplication_def>` technique used by |project_name|
  11. makes sure only the modified parts of the file are stored.
  12. Also, we have optional simple sparse file support for extract.
  13. Can I backup from multiple servers into a single repository?
  14. Yes, but in order for the deduplication used by Borg to work, it
  15. needs to keep a local cache containing checksums of all file
  16. chunks already stored in the repository. This cache is stored in
  17. ``~/.cache/borg/``. If Borg detects that a repository has been
  18. modified since the local cache was updated it will need to rebuild
  19. the cache. This rebuild can be quite time consuming.
  20. So, yes it's possible. But it will be most efficient if a single
  21. repository is only modified from one place. Also keep in mind that
  22. Borg will keep an exclusive lock on the repository while creating
  23. or deleting archives, which may make *simultaneous* backups fail.
  24. Which file types, attributes, etc. are preserved?
  25. * Directories
  26. * Regular files
  27. * Hardlinks (considering all files in the same archive)
  28. * Symlinks (stored as symlink, the symlink is not followed)
  29. * Character and block device files
  30. * FIFOs ("named pipes")
  31. * Name
  32. * Contents
  33. * Time of last modification (nanosecond precision with Python >= 3.3)
  34. * User ID of owner
  35. * Group ID of owner
  36. * Unix Mode/Permissions (u/g/o permissions, suid, sgid, sticky)
  37. * Extended Attributes (xattrs)
  38. * Access Control Lists (ACL_) on Linux, OS X and FreeBSD
  39. * BSD flags on OS X and FreeBSD
  40. Which file types, attributes, etc. are *not* preserved?
  41. * UNIX domain sockets (because it does not make sense - they are meaningless
  42. without the running process that created them and the process needs to
  43. recreate them in any case). So, don't panic if your backup misses a UDS!
  44. * The precise on-disk representation of the holes in a sparse file.
  45. Archive creation has no special support for sparse files, holes are
  46. backed up up as (deduplicated and compressed) runs of zero bytes.
  47. Archive extraction has optional support to extract all-zero chunks as
  48. holes in a sparse file.
  49. How can I specify the encryption passphrase programmatically?
  50. The encryption passphrase can be specified programmatically using the
  51. `BORG_PASSPHRASE` environment variable. This is convenient when setting up
  52. automated encrypted backups. Another option is to use
  53. key file based encryption with a blank passphrase. See
  54. :ref:`encrypted_repos` for more details.
  55. When backing up to remote servers, is data encrypted before leaving the local machine, or do I have to trust that the remote server isn't malicious?
  56. Yes, everything is encrypted before leaving the local machine.
  57. If a backup stops mid-way, does the already-backed-up data stay there? I.e. does |project_name| resume backups?
  58. Yes, during a backup a special checkpoint archive named ``<archive-name>.checkpoint`` is saved every 5 minutes
  59. containing all the data backed-up until that point. This means that at most 5 minutes worth of data needs to be
  60. retransmitted if a backup needs to be restarted.
  61. If it crashes with a UnicodeError, what can I do?
  62. Check if your encoding is set correctly. For most POSIX-like systems, try::
  63. export LANG=en_US.UTF-8 # or similar, important is correct charset