sivann / itdb

IT Items Database
http://www.sivann.gr/software/itdb/
GNU General Public License v3.0
153 stars 104 forks source link

Full Backup probleme #72

Closed so9rat closed 6 years ago

so9rat commented 6 years ago

First i wanna Thx all for all hardworks and effort spend for developing this application.

i got an issue whit Full Backup it work by generate the tar.gz file but when i wanna extract the file it show me that's an unknow format or damaged and cannot use it Any 1 have the same probleme or can help me

Note: i used 3 differents application to extract the .tar.gz file 7zip, Winrar, Winzip.

Entropede commented 6 years ago

Same thing. Unable to open .tar.gz file with 7zip.

ITDB Version 1.23 PDO::ATTR_CLIENT_VERSION: 3.13.0 PDO::ATTR_SERVER_VERSION: 3.13.0

Current PHP version: 5.6.23 PDO_SQLITE version:3.13.0

sivann commented 6 years ago

This is a linux aplication, I'm sorry but I am not familiar with winrar or winzip and I don't have an easy access to a windows OS. 7zip should work as far as I know. Kind Regards, -Spiros

On 18 January 2018 at 16:36, Charles Poirier notifications@github.com wrote:

Same thing. Unable to open .tar.gz file with 7zip.

ITDB Version 1.23 PDO::ATTR_CLIENT_VERSION: 3.13.0 PDO::ATTR_SERVER_VERSION: 3.13.0

Current PHP version: 5.6.23 PDO_SQLITE version:3.13.0

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sivann/itdb/issues/72#issuecomment-358664993, or mute the thread https://github.com/notifications/unsubscribe-auth/ABep2IMFnUIVZMistCTRgFnr0dlfTkMQks5tL1b4gaJpZM4RiwWk .

Entropede commented 6 years ago

I found explanation of this issue for my part. My root idtb folder isn't named "itdb", but in gettar.php I can see the compression is done on the folder "../itdb". passthru( "tar czf - ../itdb");

When I change "itdb" on this line for the name of my folder, it works perfectly.

There is some reason why the path "./" isn't used in this command? -Meaty

sivann commented 6 years ago

Because that wouldn't include the itdb/data, only the folder of gettar.php.

Kind Regards, -S

On 18 January 2018 at 23:28, Charles Poirier notifications@github.com wrote:

I found explanation of this issue for my part. My root idtb folder isn't named "itdb", but in gettar.php I can see the compression is done on the folder "../itdb". passthru( "tar czf - ../itdb");

When I change "itdb" on this line for the name of my folder, it works perfectly.

There is some reason why the path "./" isn't used in this command? -Meaty

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sivann/itdb/issues/72#issuecomment-358787252, or mute the thread https://github.com/notifications/unsubscribe-auth/ABep2NgLcnGUkrHFZEdC5V7hydkXYaXRks5tL7dlgaJpZM4RiwWk .

Entropede commented 6 years ago

Sorry I dont understant. gettar.php file is in the root directory of itdb, if "./" is zipper all files of the entire "itdb" folder will be archived.

In my case, when i use "passthru( "tar czf - ../itdb");" or "passthru( "tar czf - ./");", I have the same result (it's working).

Thanks!

sivann commented 6 years ago

When you extract the tar, the itdb/ folder won't be included in the 2nd case.

Entropede commented 6 years ago

So, a clean solution is: passthru( "tar czf - ../".basename(dirname(__FILE__)));