linerpuzzle.blogg.se

Duplicacy restore include exclude examples
Duplicacy restore include exclude examples







duplicacy restore include exclude examples

Say you have several folders filled with images that you want to sync to a remote server but you dont want any JPEG files to be considered. A simple and common example is the need to exclude any files that end with a certain extension. These options come at the end of async commands as such:Īsync -N My_Files -d /Docs/ -r -w passwd -include pattern -exclude patternġ. The following will only demonstrate the exclude and include options and values of an async command. For example if you define an exclude pattern for the path /Documents/Project/ before an include pattern for the path /Documents/Project/Data the Data folder will not be included because youve told async to skip anything in the /Documents/Project/ path. Note: Order is important! Patterns specified earlier trump patterns specified later. Quotes are required around the pattern when using a wildcard (such as * or ). You can either specify the patterns directly in the command as with the first two options or you can reference a file with a list of patterns to apply as with the last two options. In your async command include and exclude patterns are specified with the following options: The following examples assume you are familiar with basic async commands and globbing rules. For details on these rules see the product documentation for Aspera Sync. The globbing rules are used to match paths on your system so async knows which paths to synchronize and which to skip. These patterns follow the standard globbing rules used in Unix-like environments ( not regular expression rules). In some cases you may want to synchronize certain files within a directory but not others in which case you can use include and exclude patterns to target the files you care about. Aspera Sync allows you to synchronize files between a local and remote system by performing the necessary transfers deletions renames or moves to match up the endpoints.









Duplicacy restore include exclude examples