Data loss in a website public folder


I have recently experienced some data loss in the public folder of a website, I didn’t pay attention to that and I don’t know when was the time this have happened. I tried to see the logs but I can’t fetch more than 50 lines.

Is there anything I can do the fetch all the logs of the last 30 days and see if there was some security breach?

Thank you,

What is the cyberpanel version which you are using?


It’s the 2.1 build 2.

Please update cyberpanel to the latest version because its been solved way back. When server storage space is almost full and you try to backup and restore, such thing used to happen. But it was fixed already and the current cyberpanel version is 2.3 build 1

ALthough this is first time issue like this reported but please update your cyberpanel to latest version

Ok thanks.

Before updating cyberpanel I’m trying to download a backup of the website just in case something went wrong however I can’t find the path /home/website/backup, this could be something related ? I can see the backups in the panel.

depends or your configuration/setup what folder

my forlder are /home/mybackups

I have a /home/backup created by me, but the directory for cyberpanel backups doesn’t exist in my case therefore I can’t find my backups.

The backup folders will be created when you backup the website and it will be created at the base directory of the respective website.

I already have many backups as you can see :

These cannot be accessed normally using the inbuilt filemanager. You will need to use SFTP using root permissions or SSH commands.

I know, I am using root access through ssh.

Then you should look the backups under /home/backup/ path

It’s an empty folder

make use of find command and see if there is such backup file in the entire server
If you dont find it, then its probably not there (maybe deleted)

" Find /home " gave the results below.

If this means that there is no such file (while I can still see it in the panel by the way), it would be problematic, all the work I have done is stored in this backup.

Always backup remotely to external server or backup programs and never depend on local backups because for any reason if your server storage is corrupted, server malfunctions, server system issues; then you will be loosing on your local backups and files.

If you care about your sites, always have multiple copies of backup across remote servers/providers. Maybe Amazon S3, Blackblaze and a lot other backup providers are there.

1 Like

Perfect timing for a meme, lol. Other than that, why am I still seeing the backups in the panel if they are not in the server?

Because it might have deleted from the server and not via the cyberpanel interface and cyberpanel still believes its on the same path. If you rename the backup file name directly in server, that change too will not be reflected in the cyberpanel interface as it doesnt sync that way. This can be improved though, but this is what it is currently.

I see,. And knowing that no one has access to the server, what could be the issue that got us into this situation ? or how would we know (if it’s possible of course) ?