| | |
| | | */ |
| | | var maxArchiveContentCacheCapacityMb = 100 |
| | | private set |
| | | var isShowDemoRepos = true |
| | | var showDemoRepos = true |
| | | private set |
| | | |
| | | /** |
| | |
| | | fun copyFrom(other: Configuration) { |
| | | borgCommand = other.borgCommand |
| | | maxArchiveContentCacheCapacityMb = other.maxArchiveContentCacheCapacityMb |
| | | isShowDemoRepos = other.isShowDemoRepos |
| | | showDemoRepos = other.showDemoRepos |
| | | } |
| | | |
| | | @get:JsonIgnore |
| | |
| | | return this |
| | | } |
| | | |
| | | fun setShowDemoRepos(showDemoRepos: Boolean): Configuration { |
| | | isShowDemoRepos = showDemoRepos |
| | | return this |
| | | } |
| | | |
| | | companion object { |
| | | /** |
| | | * Default dir name for restoring archives. |