Forum archive
Server Migration TKLBAM Local Dump Error
Hi Guys
I wonder if anyone is able to offer any assistance to this issue I have...
I am attempting to do a one time server migration from turnkey-wordpress-14.2-jessie-amd64 to turnkey-wordpress-16.0-buster-amd64.
I am leveraging the TKLBAM command "tklbam-backup --dump=bkp/" on the source machine, then when I am complete I will use the command "tklbam-restore bkp/".
However I am getting this error on the source when running the backup, does anyone know how I can get this working?
UNCOMPRESSED BACKUP SIZE: 1.44 GB in 14172 files
Traceback (most recent call last):
File "/usr/bin/tklbam-backup", line 510, in <module>
main()
File "/usr/bin/tklbam-backup", line 448, in main
b.dump(dump_path)
File "/usr/lib/tklbam/backup.py", line 273, in dump
apply_overlay('/', path, self.extras_paths.fsdelta_olist)
File "/usr/lib/tklbam/utils.py", line 72, in apply_overlay
(olist_path, executil.mkarg(dst)))
File "/usr/lib/python2.7/dist-packages/executil.py", line 66, in getoutput
raise ExecError(command, exitcode, output)
executil.ExecError: non-zero exitcode (2) for command: tar --create --files-from=bkp/TKLBAM/fsdelta-olist | tar --extract --directory 'bkp/'
tar: bkp/TKLBAM/fsdelta-olist: Cannot stat: No such file or directory
tar: Error is not recoverable: exiting now
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Out of interest I tried a restore and it's not restoing correctly obviously.
Many thanks,
Christian
It looks like it's failing to find the directory for some reason. I suggest explicitly making the directory first. I also recommend using an absolute path (rather than a relative one). I.e. something like this:
Also on the other end, seeing as you are making a significant jump in version, I would recommend that you restore as little as possible. I'd definitely skip packages (just manually install any additional packages you need), only restore the wordpress DB and /var/www/wordpress directory.
You'll need to recreate the wordpress DB user:
And re-run the wordpress secret regen init hook.
Let us know how you go... :)