So, I have all working fine - good work
But, I wanted to test, if I know how to export backups from old vps and restore it to new one.
Installed miab to new vps, over scp copied all backups and seckey.txt.
Issued command:
export PASSPHRASE=$(cat /home/nisko/batest/seckey.txt) -E duplicity restore file:///home/nisko/batest /home/user-data/
ā¦and:
bash: export: -E': not a valid identifier bash: export: file:///home/nisko/batestā: not a valid identifier
bash: export: `/home/user-data/': not a valid identifier
I have not used āsudoā because I worked as root user, but tried as not root, but no change.
So, if my box have some troubles, I dont know how to restore to new one
Whot is done wrong? Thanksā¦
Synchronizing remote metadata to local cacheā¦
Copying duplicity-full-signatures.20160424T010003Z.sigtar.gpg to local cache.
Copying duplicity-full.20160424T010003Z.manifest.gpg to local cache.
Copying duplicity-inc.20160424T010003Z.to.20160425T010002Z.manifest.gpg to local cache.
Copying duplicity-inc.20160425T010002Z.to.20160426T010002Z.manifest.gpg to local cache.
Copying duplicity-inc.20160426T010002Z.to.20160427T010003Z.manifest.gpg to local cache.
Copying duplicity-inc.20160427T010003Z.to.20160427T095024Z.manifest.gpg to local cache.
Copying duplicity-new-signatures.20160424T010003Z.to.20160425T010002Z.sigtar.gpg to local cache.
Copying duplicity-new-signatures.20160425T010002Z.to.20160426T010002Z.sigtar.gpg to local cache.
Copying duplicity-new-signatures.20160426T010002Z.to.20160427T010003Z.sigtar.gpg to local cache.
Copying duplicity-new-signatures.20160427T010003Z.to.20160427T095024Z.sigtar.gpg to local cache.
Last full backup date: Sun Apr 24 03:00:03 2016
Error ā[Errno 17] File existsā processing ssl/ssl_certificate.pem
Ok, it seems, that all data is restored. I tried to login with backup admin credemals and logged in sucessfully. E-mail msgs are there.
So, I thinking, that returned error 17 with certificate may be, because I used new domain name? I dont know.
Very Thank You to all, you helped me to restore. Im going to backup that restore command for later use
I tried to restore to new vps, yes you v60fan is right. But next problem is, that nginx was not started and it couldnt, because of certs misconfig.
So, I re-initialized my vps to fresh ubuntu and moved my email boxes over imapā¦
But, previous box used box.domain.biz and new box.domain2.eu .
So, may be, that domain change is problem with backup restore to new vps.