Differences
This shows you the differences between two versions of the page.
| en:linux:backup:rsync [2023/10/24 19:19] – angelegt psycore | en:linux:backup:rsync [2023/11/07 15:20] (current) – Automatic translation 82.80.249.212 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux backup with rsync ====== | ====== Linux backup with rsync ====== | ||
| - | Linux backups can be done perfectly with rsync. Read here how it works. | + | Linux backups can be performed |
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | With " | + | With " |
| ===== Procedure ===== | ===== Procedure ===== | ||
| - | If you create copies of the backup, you have various versions. | + | If you create copies of the backup, you will have various versions. |
| <code bash> | <code bash> | ||
| Line 17: | Line 17: | ||
| creates a copy of < | creates a copy of < | ||
| - | To create a second | + | To create a 2nd version of the backup, you can create a hard link to the target directory: |
| <code bash> | <code bash> | ||
| Line 25: | Line 25: | ||
| ===== Info ===== | ===== Info ===== | ||
| - | A hardlink | + | A hard link is a reference to a file. A file can therefore have several names, i.e. it can be addressed |
| - | Calling | + | Calling our command again now compares the data in < |
| Now there are two more things to consider in the simple version: | Now there are two more things to consider in the simple version: | ||
| - | * --delete --delete-excluded : Files that are no longer | + | * --delete --delete-excluded : Files that no longer |
| - | * --exclude-from=file : Here you can specify a file containing files and directories that are not to be synchronised. The individual entries are each in a line. You can use wildcards. | + | * --exclude-from=filei : Here you can specify a file containing files and directories that are not to be synchronised. The individual entries are each on one line. You can use wildcards. |
| ===== Example of a backup process ===== | ===== Example of a backup process ===== | ||
| Line 51: | Line 51: | ||
| This creates an archive in "/ | This creates an archive in "/ | ||
| - | Then copy the backup with a hard link to get an " | + | Then copy the backup with a hardlink |