XAMPP Auto Backup

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Re: XAMPP Auto Backup

Postby xiro911 » 30. January 2023 09:40

Altrea wrote:no


It sad me to know that :(
xiro911
 
Posts: 21
Joined: 24. January 2023 02:58
XAMPP version: 5.6.36
Operating System: Windows Server 2019

Re: XAMPP Auto Backup

Postby Altrea » 30. January 2023 13:56

Did you compare the two dumps?
Some dumps contain meta information which can extend the file size.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: XAMPP Auto Backup

Postby xiro911 » 31. January 2023 01:20

Altrea wrote:Did you compare the two dumps?
Some dumps contain meta information which can extend the file size.



Image

I just compare them by both right-clicking then properties and then check the size. Is that what you mean by checking the dump?
xiro911
 
Posts: 21
Joined: 24. January 2023 02:58
XAMPP version: 5.6.36
Operating System: Windows Server 2019

Re: XAMPP Auto Backup

Postby Froosh » 31. January 2023 01:55

mysqldump command options are the only thing I can come up with.
User avatar
Froosh
 
Posts: 138
Joined: 27. March 2022 17:56
XAMPP version: 8.2.0
Operating System: Windows 11 Pro

Re: XAMPP Auto Backup

Postby xiro911 » 31. January 2023 03:57

Froosh wrote:mysqldump command options are the only thing I can come up with.


Is it possible for you to show me how to compare using a MySQLDump?

A good website reference for research would really be appreciated :|
xiro911
 
Posts: 21
Joined: 24. January 2023 02:58
XAMPP version: 5.6.36
Operating System: Windows Server 2019

Re: XAMPP Auto Backup

Postby Altrea » 31. January 2023 06:27

there are multiple ways.

easiest would be to import both dumps and count the tables and rows.

or import the auto dump and take a manual dump from that to compare file soze with your other manual dump

or if both dumps are uncompressed plain text dumps (sql files) use something lile the compare plugin from free software Notepad++ to highlight the differences

technically if both dumps are talen with the same batxh file but one of them is triggered by a windows scheduled task they should be identical.

but if your manual dump is a phpmyadmin export and one is a mysqldump dump they can be different but probably contain the same data.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: XAMPP Auto Backup

Postby Nobbie » 31. January 2023 13:47

xiro911 wrote:any explanation for how this happens?


Tons of options:

1) Did you use exactly the same commandline for "mysqldump" for autobackup / manually backup? Or is there any difference?

2) Did you run both backups exactly at the same time? If not, maybe some records have been changed / added / deleted in the meantime?

3) The output of mysqldump usually is a SQL file. That is a textfile which contains SQL statements to create the tables and records. You can:
a) simply edit the files. Open a texteditor of your choice and have a first view, if you can see any obvious differences.
b) get you a comparison tool, which can compare "similar" textfiles and show the differences. In Linux there are commandline tools like "diff" or "sdiff", probably there should be anything like that in Windows. If not, ask in a Windows forum where to get such tools. Some texteditors can do such comparisons.

And, last not least: Don't act so terribly helpless all the time. Always "sad", "sad", "sad" doesn't help you with anything. "Sad" is that you don't seem to have any computer skills at all. This is a very bad condition to be a system administrator for SQL databases.

Finally, if you still dont know how to proceed, you may upload the auto backup and the corresponding manual backup, so i can download these and i will have a look if i can find out what the differences are. Keep in mind, the size difference could also result from the fact that you might have stored them on different devices. One and the same file can result in different file size (yes!), if you have different harddisks formatted differently (i.e. different segment size).
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: XAMPP Auto Backup

Postby Froosh » 31. January 2023 15:27

I'm beginning to think the user want someone to tell them exactly what to do to make a backup, as apparently they have both automated backups and manual backups already. Then, if they have instructions, and something goes wrong, they can point to the instructions and say "I was just following these instructions..." That is what I am thinking at this point.
User avatar
Froosh
 
Posts: 138
Joined: 27. March 2022 17:56
XAMPP version: 8.2.0
Operating System: Windows 11 Pro

Re: XAMPP Auto Backup

Postby Nobbie » 31. January 2023 19:57

Actually, I dont know. I do what i can do and thats it. I am not a "support team member" (what might be misunderstood).
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: XAMPP Auto Backup

Postby xiro911 » 01. February 2023 01:21

Nobbie wrote:
xiro911 wrote:any explanation for how this happens?


Tons of options:

1) Did you use exactly the same commandline for "mysqldump" for autobackup / manually backup? Or is there any difference?

2) Did you run both backups exactly at the same time? If not, maybe some records have been changed / added / deleted in the meantime?

3) The output of mysqldump usually is a SQL file. That is a textfile which contains SQL statements to create the tables and records. You can:
a) simply edit the files. Open a texteditor of your choice and have a first view, if you can see any obvious differences.
b) get you a comparison tool, which can compare "similar" textfiles and show the differences. In Linux there are commandline tools like "diff" or "sdiff", probably there should be anything like that in Windows. If not, ask in a Windows forum where to get such tools. Some texteditors can do such comparisons.

And, last not least: Don't act so terribly helpless all the time. Always "sad", "sad", "sad" doesn't help you with anything. "Sad" is that you don't seem to have any computer skills at all. This is a very bad condition to be a system administrator for SQL databases.

Finally, if you still dont know how to proceed, you may upload the auto backup and the corresponding manual backup, so i can download these and i will have a look if i can find out what the differences are. Keep in mind, the size difference could also result from the fact that you might have stored them on different devices. One and the same file can result in different file size (yes!), if you have different harddisks formatted differently (i.e. different segment size).


Here is my used script

mysqldump -u testline -p~inf0+sy$881 Testline-v2020 > C:\Users\Administrator\Downloads\TestBackUp\TestDB.sql

They are stored on same HDD can't find the reason why theirs .10+ difference or more. I could upload the .sql file for comparison :D
xiro911
 
Posts: 21
Joined: 24. January 2023 02:58
XAMPP version: 5.6.36
Operating System: Windows Server 2019

Re: XAMPP Auto Backup

Postby xiro911 » 01. February 2023 04:07

1) Did you use exactly the same commandline for "mysqldump" for autobackup / manually backup? Or is there any difference?

For manual just click the button on XAMP choose the specific database and click backup. For auto I use the script from the above reply which I cant find how to edit the post heheh

2) Did you run both backups exactly at the same time? If not, maybe some records have been changed / added / deleted in the meantime?

Yes. So its not possible for any database changes for what I see. That is also why I am wondering what cause the discrepancy of size :?: :?: :?: :?:
xiro911
 
Posts: 21
Joined: 24. January 2023 02:58
XAMPP version: 5.6.36
Operating System: Windows Server 2019

Re: XAMPP Auto Backup

Postby Altrea » 01. February 2023 06:06

just to clearify: for manual backup you are not using the script, but clicking the Admin Button next to mysql in your XAMPP control panel to open and use phpmyadmin?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: XAMPP Auto Backup

Postby xiro911 » 01. February 2023 06:42

Altrea wrote:just to clearify: for manual backup you are not using the script, but clicking the Admin Button next to mysql in your XAMPP control panel to open and use phpmyadmin?


Correct....
xiro911
 
Posts: 21
Joined: 24. January 2023 02:58
XAMPP version: 5.6.36
Operating System: Windows Server 2019

Re: XAMPP Auto Backup

Postby Altrea » 01. February 2023 08:24

of course they are of different file size.
these are two completely different methods taking an database export of the same data.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: XAMPP Auto Backup

Postby xiro911 » 01. February 2023 08:53

Altrea wrote:of course they are of different file size.
these are two completely different methods taking an database export of the same data.


How could that be they are of different sizes the manual backup and the automatic backup is referring/targeting to the same database. Is the manual backup adding something to the .sql file to make the file a bit larger?
xiro911
 
Posts: 21
Joined: 24. January 2023 02:58
XAMPP version: 5.6.36
Operating System: Windows Server 2019

PreviousNext

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 122 guests