Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


DirectAdmin User Level Backup
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

DirectAdmin User Level Backup

Hey all.

Coming from cPanel I used to use this script for userlevel backups for those without user accessible JetBackup or the likes (https://www.thecpaneladmin.com/cpanel-automated-backup-script/)

Is there something similar I can achieve on DirectAdmin?

Essentially looking for cron scheduled full backups including databases either to disk or direct to FTP/SFTP externally

Cheers

Comments

  • RickBakkrRickBakkr Member, Patron Provider, LIR

    DA can do this out of the box ?

  • caracalcaracal Member

    Am I missing something? There’s only manual backup on the panel

  • Within the admin panel you can select backups to be run via cron and either store locally (not recommended) or SFTP onto external storage server.

    You can then use the restore feature to select a backup from a previous day/week/month to restore. At this time it is only full account backup and restore, you can’t restore individual files but this feature is being added to the Pro Pack.

    Thanked by 1NetDynamics24
  • caracalcaracal Member

    Thought I'd clarify again..
    I'm seeking a solution for automated backups at the user level. This is a web host account rented from one of the LE guys; I do not have access to reseller/admin panel.

    The alternative is I'm just so blind I can't figure out how to do so in my DA panel

  • You could try this script, not used/tried it myself - https://forum.directadmin.com/threads/automatic-user-backups.61610/

    Thanked by 1caracal
  • caracalcaracal Member
    edited May 2021

    @LeonDynamic said:
    You could try this script, not used/tried it myself - https://forum.directadmin.com/threads/automatic-user-backups.61610/

    Thanks on the lead regarding the API. Will have a go and update.

    EDIT:
    A POST on the API CMD_API_SITE_BACKUP worked well

    Thanks again @LeonDynamic

    Something like:

    curl -d 'action=backup&domain=<domain>&select0=domain&select1=subdomain&select2=email&select3=forwarder&select4=autoresponder&select5=vacation&select6=list&selection7=emailsettings&select8=ftp&select9=ftpsettings&select10=database&select11=database_data&select12=email_data' https://user:password@DA-IP:2222/CMD_API_SITE_BACKUP
    
  • AlwaysSkintAlwaysSkint Member
    edited May 2021

    Ain't that pretty? Sure beats the end user, clicking on cron tasks then adding for example /usr/local/sbin/userbackup.sh to be run at 5 past 3 in the morning each night.
    Or perhaps, even a Schedule button on the backup definition page?

    /sarcasm (just!)

Sign In or Register to comment.