Submitted by masp on Sun, 12/05/2010 - 12:23
1) if i will open backup on windows - I will get error - broken archive
what is *_dir file in backup ? How to get all user files ?
2) BAD link http://www.virtualmin.com/documentation/system/backup-and-restore#comman... Backup and Restore API
Submitted by andreychek on Sun, 12/05/2010 - 14:01 Comment #1
Howdy -- it's difficult to say why the archive won't open on your Windows system... it may be that the particular tool you're using doesn't support the compression being used. Unfortunately, we're not big users of Windows systems, so it's difficult to recommend a particular tool :-)
However, once you open the archive, you'd typically see the users files right there.
If you're having trouble getting that working on Windows -- the way to open the archives on Linux is:For .bz2 files
For .gz files
tar jxvf domain.tar.bz2
tar zxvf domain.tar.gz
Thanks for the note about the bad URL. It was pointing to a URL that was for the old website, so I've updated that. The correct URL is here:
Submitted by JamieCameron on Sun, 12/05/2010 - 16:34 Comment #2
If you select the "One file per server" backup format, the contents of the backup will basically be just the domain's home directory.
Submitted by Locutus on Sun, 12/05/2010 - 19:32 Comment #3
A note from my end: I'm using the tool "Total Commander" to look inside the TAR archives (TGZ in my case), and I found that their structure as it appears on a Windows system indeed seems to be a little "strange" (yet intact).
In the root of the TAR there appear subdirectories that are named 11-digit decimal numbers, like 11470242643 to 11476602101 in one example. They look like Linux timestamps or similar. Inside those is a directory named "." (current-dir), and inside that is a particular (part of a) subdirectory of the user's home, in addition to a directory ".backup" which contains the Virtualmin settings of the domain.
Yet despite of the "odd" structure, which may well be just the way that Total Commander interprets the TAR contents - although when I e.g. download some PHP script in TGZ format, there's usually not this strange timestamp-subdirectories in it - the archives unpack all fine on a Linux system.
So I guess it's possible that Virtualmin uses some mode or variant of TAR that causes oddities on Windows systems, in my case the timestamp subdirs, in your case maybe a complete failure to open the archives with your particular tool. A test would be, as was suggested here, to unpack one of them on Linux and see if they're okay.
Submitted by JamieCameron on Sun, 12/05/2010 - 20:00 Comment #4
I can't really speak to the way "Total Commander" shows archives, but the best way to see their contents on Linux would be with a command like :
tar tvzf backupfile.tar.gz
Submitted by masp on Mon, 12/06/2010 - 04:21 Comment #5
Thanks! yes [11470242643 to 11476602101] in http://gnuwin32.sourceforge.net/packages/gtar.htm , Total Commander" , WINRAR, 7ZIP
but in unix - all OK
can you please show me command whose you will use for compressing (like tar cfz public_html.tar.gz public_html/. )
Also I can open backup from cpanel in windows and all OK. (and open tar file on windows compressed like tar cfz (in unix))
Submitted by JamieCameron on Mon, 12/06/2010 - 14:10 Comment #6
The command is something like :
tar cf - . | gzip -c >/backup/domain.com.tar.gz