mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 22:22:27 +00:00
Updates to quickstart.rst, including sshfs locking warning
This commit is contained in:
parent
66fe7e5377
commit
2d4382b2ee
1 changed files with 11 additions and 7 deletions
|
@ -11,7 +11,7 @@ The next section continues by showing how backups can be automated.
|
|||
A step by step example
|
||||
----------------------
|
||||
|
||||
1. Before any backup can be taken a repository has to be initialized::
|
||||
1. Before a backup can be made a repository has to be initialized::
|
||||
|
||||
$ attic init /somewhere/my-backup.attic
|
||||
|
||||
|
@ -25,8 +25,8 @@ A step by step example
|
|||
$ attic create -v --stats /somwhere/my-backup.attic::second-backup ~/src ~/Documents
|
||||
|
||||
This backup will be a lot quicker and a lot smaller since only new never
|
||||
before seen data is stored. The ``--stats`` causes |project_name| to output
|
||||
statistics about the newly created archive such as the amount of unique
|
||||
before seen data is stored. The ``--stats`` option causes |project_name| to
|
||||
output statistics about the newly created archive such as the amount of unique
|
||||
data (not shared with other archives).
|
||||
|
||||
4. List all archives in the repository::
|
||||
|
@ -49,7 +49,7 @@ A step by step example
|
|||
Automating backups
|
||||
------------------
|
||||
|
||||
The following example script backups up ``/home`` and
|
||||
The following example script backs up ``/home`` and
|
||||
``/var/www`` to a remote server. The script also uses the
|
||||
:ref:`attic_prune` subcommand to maintain a certain number
|
||||
of old archives::
|
||||
|
@ -65,14 +65,14 @@ of old archives::
|
|||
/var/www \
|
||||
--exclude /home/*/.cache \
|
||||
--exclude /home/Ben/Music/Justin\ Bieber \
|
||||
--exclude *.pyc
|
||||
--exclude '*.pyc'
|
||||
|
||||
# Use the `prune` subcommand to maintain 7 daily, 4 weekly
|
||||
# and 6 monthly archives.
|
||||
attic prune -v $REPOSITORY --daily=7 --weekly=4 --monthly=6
|
||||
|
||||
.. Note::
|
||||
This script assumes the repository has already been initalized with
|
||||
This script assumes the repository has already been initialized with
|
||||
:ref:`attic_init`.
|
||||
|
||||
.. _encrypted_repos:
|
||||
|
@ -80,7 +80,7 @@ of old archives::
|
|||
Repository encryption
|
||||
---------------------
|
||||
|
||||
Repository encryption is enabled at repository encryption time::
|
||||
Repository encryption is enabled at repository creation time::
|
||||
|
||||
$ attic init --encryption=passphrase|keyfile PATH
|
||||
|
||||
|
@ -130,3 +130,7 @@ mounting the remote filesystem, for example, using sshfs::
|
|||
$ sshfs user@hostname:/path/to/folder /tmp/mymountpoint
|
||||
$ attic init /tmp/mymountpoint/repository.attic
|
||||
$ fusermount -u /tmp/mymountpoint
|
||||
|
||||
However, be aware that sshfs doesn't fully implement POSIX locks, so
|
||||
you must be sure to not have two processes trying to access the same
|
||||
repository at the same time.
|
||||
|
|
Loading…
Reference in a new issue