This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:win10_syncback [2020/04/20 15:14] jypeter Added groups section |
other:win10_syncback [2020/04/28 21:44] jypeter [The side effect of filters] |
||
---|---|---|---|
Line 40: | Line 40: | ||
You can **use filters** to disable some of what SyncBack would try to backup otherwise: | You can **use filters** to disable some of what SyncBack would try to backup otherwise: | ||
- | * Not backing up useless files/directories (e.g lots of temporary files with random names in cache directories) will make SyncBack run faster (and save space on the backup device) | + | * Not backing up useless files/folders (e.g lots of temporary files with random names in cache folders) will make SyncBack run faster (and save space on the backup device) |
- | * Some files/directories can't be backed up because their access is protected by the system (possibly because they are still open) and will generate errors in the log file. Skipping them will make it easier to spot real errors | + | * Some files/folders can't be backed up because their access is protected by the system (possibly because they are still open) and will generate errors in the log file. Skipping them will make it easier to spot //real// errors |
- | * In order to make a correct backup of everything, it is always better to close the running applications before starting the backup | + | * In order to make a correct backup of everything, it is always better to close the running applications (if possible) before starting the backup |
Notes: | Notes: | ||
- | * The filters are paths relative to the source folder | + | * The filters are **paths relative to the //Source// folder** |
- | * A filter **must** start with ''\string'' (''string'' will be searched in the root of the source directory) or ''%%*%%\string'' (there can be subdirectories between the source directory and ''string'') | + | * A filter **must** start with ''\string'' (''string'' will be searched in the root of the Source folder) or ''%%*%%\string'' (there can be sub-folders between the Source folder and ''string'') |
- | * A folder name **must** have a trailing slash (''*\some_text_file.txt'' vs ''\a_subfolder_somewhere\'') | + | * A **folder** name **must** have a trailing slash (''*\some_text_file.txt'' vs ''\a_subfolder_somewhere\'') |
* To modify an existing filter double-click on it in the filters' list | * To modify an existing filter double-click on it in the filters' list | ||
* you can use uppercase and lowercase in windows files and folders' names, but the filters will ignore the case of the characters (e.g. the ''*\mixed_case.txt'' filter would skip ''mixed_case.txt'', ''Mixed_Case.txt'', ''mixed_CASE.txt'', ...) | * you can use uppercase and lowercase in windows files and folders' names, but the filters will ignore the case of the characters (e.g. the ''*\mixed_case.txt'' filter would skip ''mixed_case.txt'', ''Mixed_Case.txt'', ''mixed_CASE.txt'', ...) | ||
Line 63: | Line 63: | ||
- | ==== Suggested filters when backing up your Windows folder ==== | + | ==== Suggested filters when backing up your Windows Home folder ==== |
- | Default Windows folder: ''C:\Users\your_login'' | + | Default Windows Home folder: ''C:\Users\your_login'' |
* Remove [[other:win10wsl|WSL+Linux]] from backup: ''%%*\AppData\Local\Packages\Canonical*Ubuntu*\%%'' | * Remove [[other:win10wsl|WSL+Linux]] from backup: ''%%*\AppData\Local\Packages\Canonical*Ubuntu*\%%'' | ||
* It's probably better to use [[other:win10wsl#restoring_a_wsl_backup|wsl export/import]] for saving/restoring a full WSL installation, or a //tar// file for saving only the Linux ''home'' directory | * It's probably better to use [[other:win10wsl#restoring_a_wsl_backup|wsl export/import]] for saving/restoring a full WSL installation, or a //tar// file for saving only the Linux ''home'' directory | ||
- | * Remember that WSL+Linux can access Windows directories using ''/mnt/some_drive/some_directory''. You can put your data files in ''some_drive:\some_directory'' and use SyncBack to save the content! | + | * Remember that WSL+Linux can access Windows folders using ''/mnt/some_drive/some_directory''.\\ You can put your data files in ''some_drive:\some_folder'' and use SyncBack to save the content of this regular Windows folder! |
- | * Remove the backup of all the settings saved in AppData\Local\Packages: ''%%*\AppData\Local\Packages\%%'' | + | * Remove the backup of all the settings saved in ''AppData\Local\Packages'': ''%%*\AppData\Local\Packages\%%'' |
- | * Try to remove all the cache files: ''*cache*\''\\ This should take care of cache folders like: | + | * Try to remove all the cache files: ''*\*cache*\''\\ This should take care of cache folders like: |
* ''%%*\AppData\Local\Google\Chrome\User Data\Default\*Cache\%%'' | * ''%%*\AppData\Local\Google\Chrome\User Data\Default\*Cache\%%'' | ||
* Remove some Microsoft apps related directories: ''%%*\AppData\Local\Microsoft*\%%'' | * Remove some Microsoft apps related directories: ''%%*\AppData\Local\Microsoft*\%%'' | ||
Line 81: | Line 81: | ||
==== The side effect of filters ==== | ==== The side effect of filters ==== | ||
- | If you use a filter to specify that something in the //Source// folder should not be backed up to the //Destination// folder, SyncBack will also ignore it in the Destination folder, and it will stay in //Destination// **forever**, unless you remove it by hand! | + | If you use a filter to specify that something in the //Source// folder should not be backed up to the //Destination// folder, SyncBack will also ignore it in the Destination folder, and it will stay in //Destination// **forever** (if it is already there), unless you remove it by hand! |
If you have time, you may want to review the custom filters you have added, and **remove the //filtered// folders/files in Destination by hand**... | If you have time, you may want to review the custom filters you have added, and **remove the //filtered// folders/files in Destination by hand**... | ||
- | **Detailed example:** | + | === Detailed example === |
- | * you execute a backup profile, and one of the mirrored folders (in Source) is called ''datareporting''\\ => ''datareporting'' exists in both Source and Destination | + | |
+ | * you execute a backup profile, and one of the mirrored folders (in Source) is called ''datareporting''\\ => ''datareporting'' exists in both Source and Destination after the mirror backup | ||
* you add a ''%%*\datareporting\%%'' filter that will skip the ''datareporting'' folders the next times you execute the backup profile\\ => ''datareporting'' still exists in both Source and Destination | * you add a ''%%*\datareporting\%%'' filter that will skip the ''datareporting'' folders the next times you execute the backup profile\\ => ''datareporting'' still exists in both Source and Destination | ||
* The ''datareporting'' content in Source may change but will be ignored by SyncBack (that's what you want!) | * The ''datareporting'' content in Source may change but will be ignored by SyncBack (that's what you want!) | ||
- | * **The ''datareporting'' content in //Destination// will stay there and never change** (the //side effect//...) | + | * **The ''datareporting'' content in //Destination// will stay there and never will change** (the //side effect//... because you don't want to have something in Destination that does not exist in Source, after a mirror backup) |
* The only way to get rid of ''datareporting'' in Destination is to **remove it by hand** | * The only way to get rid of ''datareporting'' in Destination is to **remove it by hand** | ||
+ | |||
+ | === Finding and cleaning filtered items === | ||
+ | |||
===== Using groups of profiles ===== | ===== Using groups of profiles ===== |