- experimental 0.4.9~alpha-5
|sy-cleanup(1)||General Commands Manual||sy-cleanup(1)|
sy-cleanup - remove old versions and free remote disk space
sy cleanup [-o |
--delete-older-than=<relative-time>] [-f |
[-I | --no-delete-interval] [-O | --no-delete-older-than]
[-T | --no-temp-removal] [<status-options>]
This command performs different operations to cleanup the local database as well as the remote store. It removes old versions from the local database, deletes unused multichunks (if possible) and merges remote database files, if necessary.
Remove old file versions: File versions are deleted by two criteria. The first is if it is older than 30 days (configurable with -o, disable with -O). The second is an interval based strategy, to keep the version history readable. By default, one version is kept per minute in the last hour, one verison is kept per hour in the last three days and one version per day is kept in the last month. This strategy can be disabled with -I.
Merge remote databases: The remote databases of the local client are merged together if there are more than 15 remote databases per client. The purpose of this is to avoid endless amounts of small database files on the remote storage and a quicker download process for new clients. In addition, databases are merged whenever versions are removed.
This command uses the ´status´ and ´ls-remote´ commands and is only executed if there are neither local nor remote changes.
Relative time format: <value><unit>, for which <value> may be any floating point number and <unit> may be any of the following: s(econds), m(inutes), h(ours), d(ays), w(eeks), mo(nths), y(ears). Units may be shortened if they are unique. Examples: 5h30m or 1y1mo2d
With this option, only old file versions (-o) will be deleted.
Syncany 0.4.9-alpha, Distributed under GPLv3, Copyright (c) 2011-2015 Philipp C. Heckel