kill backup process

Ehsan

Verified User
Joined
Jul 13, 2011
Messages
30
Is there any way to find out which backups (or cron backups) are running on the server?
And how can I kill some of them if I want to?

Thank you
 
you can use grep to see who's using "tar" command,

ps aux | grep "/bin/tar"
and for users cronjobs:
go to da panel, "admin level" => " all usere cron jobs"
 
I've run into this problem, but the issue here is that backups aren't always running tar. Sometimes they're moving files, other times they're using tar, and other times they're using ftp or some other transfer method.

I've been thinking about this for some time now. Perhaps John can consider adding a flag somewhere when a backup starts and removing it when it's finished, perhaps with an interface page to tell us, and possibly even adding info on whether or not the backup completed without error, since sometimes we run backups for hours before we find out a specific user backup failed.

Jeff
 
And hopefully you'll include a way to kill the backup as well (the subject of this thread :)).

Jeff
 
Thank you John for your support,
Could you please also add this feature to the API, so I can manage the Directadmin's tasks and ability to kill them through API?

Regards
 
Sounds like a cool feature, I'm getting a:

You cannot execute that command

Details

The request you've made cannot be executed because it does not exist in your authority level

error now though on CMD_ADMIN_BACKUP_MONITOR, while logged in as the admin in the admin level.
 
Hello,

Sorry for the confusion.

CMD_ADMIN_BACKUP_MONITOR

is only the reference to the html file to show the page.

The actual command you'd be using would look like:
CMD_ADMIN_BACKUP?action=monitor&pid=26404


You will be shown the link on the standard Admin Backup/Transfer page, at the top of the page.. but only when a backup is running (have to refresh/load when a backup has already started)

John
 
Hello John,

it would be very handy if you could provide a history, too. Since most of my backups runs at night, I could see if all things went well...

Regards,
AxlF
 
Hi AxlF,

I didn't know about this because the wording on CMD_ADMIN_BACKUP was a bit confusing for me, but if you enable:

Send a message when a backup has finished

on that page, you'll get a message when your backup has finished in the night. If you leave that option disabled you'll only get a message when your backup failed. Probably the option you really want because when you get emails every night from DirectAdmin you tend to miss one when it actually says it failed.

Cheers,

Tristan
 
I didn't know that I get a message when the backup failed, even if this option is not checked. Thanks for that hint.

But wouldn't it also be useful to have a tabular overview of the last backups?
I think it's not that hard to create, but sure, its a nice to have.


I would like to avoid circumstances, where backup files were generated, but empty (no error message sent) and where backup files were corrupted during transfer. I had both situations over the last while.

Thahts why I ended in the following backup strategy:

1) Backup every night for 7 days in seperate folder
This is already possible.
Anyways, the backup transfer throught ftp went not very well for me. Irregular abortions, ending in corrupted backups.
Direct backup in a cifs mounted folder went not very well, either. This was very slow, and lasted for too long. This may be down to my infrastructure, but this isn't changeable for me, so far.

So I end up in storing the backup in a local folder, which is okay for now.

2) rsync to remote backup
Every night, after the backup runs, I rsync the changed folders to a seperate backup-space, cifs mounted (which strangely runs faster than through direct backup in the mounted folder)

3) Get clarification:
Overview over all stored backups on the backup-space with md5sums of all files, compared with the local ones, to ensure the backup is not corrupted.

I know, this all could be done through shell scripts, but it would nice to have an overview in the Directadmin, too.


For me, backups are crucial, that is why I like to be secured twice.
 
Following the same strategy over here, local backups and rsync to remote location.

Did you also get faulty backup files when doing local backups without getting a notification email by the way?
 
If you leave that option disabled you'll only get a message when your backup failed. Probably the option you really want because when you get emails every night from DirectAdmin you tend to miss one when it actually says it failed.
I prefer to get both backup notifications. The subject is quite different, so I use local filtering (imap sieve) to mark the errors and put them into a priority mailbox, and also to put the simple completed emails into a folder which I can peruse and delete at my leisure but exists if I need to check to see that a backup has completed.

We're starting an experiment to keep a separate local (on the server) backup drive (seven days) and once a week we'll be using rsync to create a remote backup across the country. We'll give it a try.

Jeff
 
I prefer to get both backup notifications. The subject is quite different, so I use local filtering (imap sieve) to mark the errors and put them into a priority mailbox, and also to put the simple completed emails into a folder which I can peruse and delete at my leisure but exists if I need to check to see that a backup has completed.
I would like to get the exact message in the message center as email, not only the notification that there is a new message in my inbox. Even further it would be informative, when the resulting file size of each users tar.gz file would be shown. That would be really helpful.


We're starting an experiment to keep a separate local (on the server) backup drive (seven days) and once a week we'll be using rsync to create a remote backup across the country. We'll give it a try.
We do the same, only difference that we do a rsync every night of the changed folders. So you have a off server backup of every day in the week.

Regards,
AxlF
 
Following the same strategy over here, local backups and rsync to remote location.

Did you also get faulty backup files when doing local backups without getting a notification email by the way?

Sometimes I get success notifications, but the file sizes of some users are 0kb. That happened twice in the last three weeks. I don't know what the problem is...
 
Back
Top