Backups failing

jayw1

Verified User
Joined
Nov 20, 2019
Messages
205
Location
USA
For about a week now, admin backups have been failing. I use it to backup database daily and worked fine for months until recently.

Here's the error:

Error Compressing the backup file backup.tar.gz : /bin/tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
/bin/tar: -C ‘/home/user/’ has no effect
/bin/tar: Exiting with failure status due to previous errors

Any idea?
 
By the way, I think installing "pigz" would workaround the problem :)
 
Yes, but I prefer zstd over gzip/pigz.

I can't extract .xz files at all on Ubuntu or CentOS, I've tried many commands and all give the same error.

Code:
[root@server test]# xz -d databasebackups-2020-12-26.tar.xz
xz: databasebackups-2020-12-26.tar.xz: File format not recognized

Code:
[root@server test]# tar -xf databasebackups-2020-12-26.tar.xz
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now

How do I properly revert back to using pigz?
 
I can't extract .xz files at all on Ubuntu or CentOS, I've tried many commands and all give the same error.

Code:
[root@server test]# xz -d databasebackups-2020-12-26.tar.xz
xz: databasebackups-2020-12-26.tar.xz: File format not recognized

Code:
[root@server test]# tar -xf databasebackups-2020-12-26.tar.xz
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now

How do I properly revert back to using pigz?
Zstd extension is .zst, I am not sure where did these tar.xz files come from?
 
Zstd extension is .zst, I am not sure where did these tar.xz files come from?

My mistake. I was still renaming the backups with .tar.xz before rsync'ing them to another server. Tested again before that cron ran and I do get .tar.zst
I decompressed with unzstd file.tar.zstd

Very fast too!
 
Back
Top