Skip to content

Commit

Permalink
added --parallel=32 flag for sync-to
Browse files Browse the repository at this point in the history
  • Loading branch information
ww7 committed Jun 26, 2022
1 parent b2e2a02 commit c7ca50c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ kopia policy set --global \
--keep-latest 5
```

Kopia tweaks
---
* To use maximum speed of filesystem/network with `sync-to` use `--parallel=32` (default is `1`, what limit of 5MB/s)

Essential CLI commands
---

Expand Down
1 change: 1 addition & 0 deletions k-repo-sync-add-sftp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ for repo in $repo_sync; do
--keyfile $keyfile \
--known-hosts $knownhosts \
--path $repository_folder \
--parallel=32 \
--delete

# creating a config file of new storage
Expand Down
3 changes: 2 additions & 1 deletion k-repo-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ for repo in $repo_sync; do
# --keyfile $keyfile \
# --known-hosts $knownhosts \
# --path $repository_folder \
# --parallel=32 \
# --delete

kopia repository sync-to from-config --delete --file "$script_dir/repositories/repo-$username@$host.config"
kopia repository sync-to --parallel=32 from-config --delete --file "$script_dir/repositories/repo-$username@$host.config"

done

0 comments on commit c7ca50c

Please sign in to comment.