You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make a two level backup. First level: Make a backup from one or more machines onto an internal backup server. Second level: Make a backup of the backup onto a external disk (or to a cloud repository). For the second level backup I want to run resticprofile with a copy command on the backup server. But the copy command doesn't work as intended.
To make my test easier I have both profiles in on configuration file (data to backup, the first level repo and the second level repo are in one folder). In reality I have to configurations, one on the machines to backup with profile default and one on the backup server with profile secondary.
I suspect the cause of this is the "Special case" described in "resticprofile > Configuration file > Copy command". There it is described that the "from-" prefix can be omitted. But the "Special Case" somehow reverses "source" and destination, to. restic usually uses --repository and friends for the destination for both the backup and the copy command. resticprofile breaks with this, which isn't a good idea. I there is good reason for this reversal, this shall be done with another special restic command (say reverse-copy) and leave the copy command compatible to the usual restic behavior.
BTW: it would be nice if we can have the retention section work with copy, too. But that's another issue...
The text was updated successfully, but these errors were encountered:
As I mentioned the default profile is meant to be used on the machine to backup to my backup server and the secondary profile on the backup server to make to copy to the disk. I only merged both into one configuration file for my tests. So the configuration on the backup machine can only work if i use two different profiles for copy and forget. This is not very intuitive:
I think implementing copy different to restics copy is a very bad idea. I prefer to make it behave the same in both programs. I think you have some reason for your change. So you can add a reverse copy function named copy-to instead. Additionally, it would be nice to have after-copy and before-copy entries in the retention-section.
I want to make a two level backup. First level: Make a backup from one or more machines onto an internal backup server. Second level: Make a backup of the backup onto a external disk (or to a cloud repository). For the second level backup I want to run
resticprofile
with a copy command on the backup server. But the copy command doesn't work as intended.To make my test easier I have both profiles in on configuration file (data to backup, the first level repo and the second level repo are in one folder). In reality I have to configurations, one on the machines to backup with profile
default
and one on the backup server with profilesecondary
.For initialization I run
The backup is run per schedule:
And from time to time, normally onto a disk, her into the local
secondary
repo:The last step fails (output a little bit edited):
I suspect the cause of this is the "Special case" described in "resticprofile > Configuration file > Copy command". There it is described that the "from-" prefix can be omitted. But the "Special Case" somehow reverses "source" and destination, to.
restic
usually uses--repository
and friends for the destination for both thebackup
and thecopy
command.resticprofile
breaks with this, which isn't a good idea. I there is good reason for this reversal, this shall be done with another special restic command (sayreverse-copy
) and leave thecopy
command compatible to the usualrestic
behavior.BTW: it would be nice if we can have the
retention
section work withcopy
, too. But that's another issue...The text was updated successfully, but these errors were encountered: