Question about Admin Level -> System Backup sysbk

oksiak

Verified User
Joined
Oct 27, 2021
Messages
23
Hi :)

I created a backup Admin Level -> System Backup sysbk by mistake, I would like to delete the copy but I don't know where it is. Can someone help me?
 
This should be created in the /root directory. let's take a look with cd /
 
This should be created in the /root directory. let's take a look with cd /
Hm...I checked and in directory cd /root/backup/2073581/home/backup/db I have some old backups
03-23-17 03-24-17 03-25-17 03-26-17 03-27-17 03-28-17 03-29-17 03-30-17 03-31-17
cd /root/backup/2073581/home/backup/db/03-31-17
da_roundcube.sql.gz mysql.sql.gz xxxxxxxxna.sql.gz
information_schema.sql.gz performance_schema.sql.gz

As I understand it, there are also some old copies, can I delete them?

I keep looking and in cd /root/backup/2073581/home/s(edited)2/backups I found more old copies
backup-Mar-27-2017-4.tar.gz backup-Mar-29-2017-1.tar.gz backup-Mar-30-2017-2.tar.gz
backup-Mar-28-2017-2.tar.gz backup-Mar-29-2017-2.tar.gz
backup-Mar-28-2017-3.tar.gz backup-Mar-30-2017-1.tar.gz

Can i delete them?


I still can't find the copy that direct admin created yesterday :( Admin Level -> System Backup sysbk
 
Last edited:
That command is already stated 3 times?
Login via SSH as root and then:

cd /

After that use the list command to list the directory.
Ok got it :)

Code:
bin   dev  home  lib64       media  opt   remi-release-7.rpm    root  sbin  sys      tmp  var               
boot  etc  lib   lost+found  mnt    proc  remi-release-7.rpm.1  run   srv   test.sh  usr
 
It's not in there as it seems. Is somebody else managing that server for you? I seen things in there which are normally not present in the systemroot.
Like the rpm files and the test.sh file.

Not really something to worry about, but if I would put it in some different place, not in a system dir.

If you click on the system backup, you should be able to see where it's place. I've just looked it up for you and normally it's:
$MOUNT_POINT/backup
which normally is /backup if I'm not mistaken. However in your / there is no backup directory so I don't know where it is now.

I think best is to go back in the GUI to the system backup page and there it should be displayed.
 
It's not in there as it seems. Is somebody else managing that server for you? I seen things in there which are normally not present in the systemroot.
Like the rpm files and the test.sh file.

Not really something to worry about, but if I would put it in some different place, not in a system dir.

If you click on the system backup, you should be able to see where it's place. I've just looked it up for you and normally it's:
$MOUNT_POINT/backup
which normally is /backup if I'm not mistaken. However in your / there is no backup directory so I don't know where it is now.

I think best is to go back in the GUI to the system backup page and there it should be displayed.
Thanks for answear :) , I'm the only one managing the server, but I'm not a specialist. A few years back a friend of mine helped me.

In Direct Admin it shows $MOUNT_POINT/backup for System Backups .
The copy was made yesterday,
Code:
Performing sanity checks:  Completed
Checking load average:  Completed
Checking free disk space:  Completed
Performing Custom backup
     Archiving /etc/exim.conf:  Completed
     Archiving /etc/exim.cert:  Completed
     Archiving /etc/exim.key:  Completed
     Archiving /etc/exim.pl:  Completed
     Archiving /etc/group:  Completed
     Archiving /etc/gshadow:  Completed
     Archiving /etc/hosts:  Completed
     Archiving /etc/httpd/conf/httpd.conf:  Completed
     Archiving /etc/httpd/conf/ips.conf:  Completed
     Archiving /etc/named.conf:  Completed
     Archiving /etc/passwd:  Completed
     Archiving /etc/master.passwd:  Completed
     Archiving /etc/proftpd.conf:  Completed
     Archiving /etc/proftpd.passwd:  Completed
     Archiving /etc/proftpd.vhosts.conf:  Completed
     Archiving /etc/resolv.conf:  Completed
     Archiving /etc/shadow:  Completed
     Archiving /etc/ssh/sshd_config:  Completed
     Archiving /etc/system_filter.exim:  Completed
     Archiving /usr/local/directadmin/conf/mysql.conf:  Completed
     Archiving /etc/mail:  Completed
     Archiving /etc/virtual:  Completed
     Archiving /home/admin:  Completed
     Archiving /usr/lib/apache:  Completed
     Archiving /usr/local:  Completed
     Archiving /usr/share/ssl:  Completed
     Archiving /var/log:  Completed
     Archiving /var/named:  Completed
     Archiving /var/mail:  Completed
     Archiving /var/spool/cron:  Completed
     Archiving /var/spool/mail:  Completed
     Archiving /var/spool/virtual:  Completed
     Archiving /var/www:  Completed
     Archiving /usr/local/directadmin/data:  Completed
     Archiving /usr/local/frontpage:  Completed
     Archiving /etc/httpd:  Completed
Performing DNS backup
     Stage 1 DNS backup: Completed
     Stage 2 DNS backup: Completed
Performing Apache backup:  Completed
Performing MySQL backup
     Stage 1 MySQL backup: Completed
     Stage 2 MySQL backup:     Stage 3 MySQL backup:
       Dumping database da_roundcube:  Completed
       Dumping database mysql:  Completed
       Dumping database performance_schema:  Completed
       Dumping database strona2_strona:  Completed
Performing cleanup operations:  Completed

I have 3 GB less space, Direct Admin notified me that the copy was made and that's why I asked how I can locate and delete such a copy.

I have one more question, I found some old copies in cd /root/backup/2073581/home/strona2/backups
Code:
backup-Mar-27-2017-4.tar.gz backup-Mar-29-2017-1.tar.gz backup-Mar-30-2017-2.tar.gz
backup-Mar-28-2017-2.tar.gz backup-Mar-29-2017-2.tar.gz
backup-Mar-28-2017-3.tar.gz backup-Mar-30-2017-1.tar.gz

Can I safely delete them?
 
I have 3 GB less space, Direct Admin notified me that the copy was made and that's why I asked how I can locate and delete such a copy.
You could use this command from SSH:
echo $MOUNT_POINT/backup
and it would show you where it is. Maybe in your case the mountpoint is /home and then the backup should be at /home/backup so might want to have a look there, since the backup is makde
cd /home/backup

I don't understand what user backups are doing in a /root/backup directory but maybe your friend put them there for some reason. Yes you can safely delete them.
 
You could use this command from SSH:
echo $MOUNT_POINT/backup
and it would show you where it is. Maybe in your case the mountpoint is /home and then the backup should be at /home/backup so might want to have a look there, since the backup is makde
cd /home/backup
I typed echo $MOUNT_POINT/backup in ssh and it gave me
Code:
/backup

I checked further and found
Code:
cd /home/backup/db
11-30-24  12-01-24  12-02-24  12-03-24  12-04-24  12-05-24  12-06-24  12-07-24  12-08-24

I don't understand what user backups are doing in a /root/backup directory but maybe your friend put them there for some reason. Yes you can safely delete them.

cd /root/backup/2073581/home/strona2/backups
Code:
backup-Mar-27-2017-4.tar.gz backup-Mar-29-2017-1.tar.gz backup-Mar-30-2017-2.tar.gz
backup-Mar-28-2017-2.tar.gz backup-Mar-29-2017-2.tar.gz
backup-Mar-28-2017-3.tar.gz backup-Mar-30-2017-1.tar.gz

strona2 is active - linked domain (I run an internet forum), I found these copies by accident and they are from 2017.


Deleting these copies will not affect my forum? Sorry for asking so many times but I don't want to damage/kill my forum.
 
Deleting backups won't affect anything unless the backup is needed at a later date...... But they are safe to delete
 
Deleting these copies will not affect my forum? Sorry for asking so many times but I don't want to damage/kill my forum.
No, they are .tar.gz files so packed backups. I presume (if you're wise) you have created more recent backups for your forum. So yes 2017 is a long time ago and .tar.gz backup files are not use by any forum software as active files so you can delete them.

checked further and found
Those look as database files, or at least a /db/ directory normally would be short for database. There are recent dates in there, december 8th being the last zo these could be part of system backups.
 
Ok, I deleted old backups :) Thanks for help @Richard G , @LawsHosting and @exlhost :)




I checked cd /home/backup/db
Code:
11-30-24  12-01-24  12-02-24  12-03-24  12-04-24  12-05-24  12-06-24  12-07-24  12-08-24
and they are all empty.

I am still looking for the where the copy created by Admin Level -> System Backup sysbk was saved.
 
I backup via FTP on a dedicated server (for ALL backups), but I do see /backup in / on my system...... If you do not see it, either sysbk is not running or it's using another directory.
 
Hi :)

I checked cd /home/backup/ and found

Code:
12-07-24  db

12-07-2024 this is the date of the copy I'm looking for

which contains

Code:
apache  bind  custom  mysql

apache contains
Code:
apache.md5  apache.tar.gz
bind contains
Code:
named.conf.md5  named.conf.tar.gz  zone_records.md5  zone_records.tar.gz
custom contains
Code:
etc  home  usr  var

and mysql contains
Code:
da_roundcube.sql.md5     full-mysql.tar.gz  performance_schema.sql.md5     strona2_strona.sql.tar.gz         
da_roundcube.sql.tar.gz  mysql.sql.md5      performance_schema.sql.tar.gz                                   
full-mysql.md5           mysql.sql.tar.gz   strona2_strona.sql.md5

I think I may have found the backup I created using System Backup sysbk.
 
Back
Top