Results 1 to 2 of 2

Thread: How to exclude domain in backup-script?

  1. #1
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    89

    How to exclude domain in backup-script?

    Hello,
    I have the code below here (for a cron) to make a backup of alle domains, and copy this by FTP.
    It works great!

    However, now i'm looking for a option for exclude a domain. Is there an option availiable for this?

    Code:
    #!/bin/sh
    
    datum=`date +%u`;
    `echo "action=backup&ftp_ip=xxx.xxx.xxx.xxx&ftp_username=**username**&ftp_password=**password**=&ftp_path=/$datum/&owner=admin&type=admin&value=multiple&when=now&where=ftp&who=all" >> /usr/local/directadmin/data/task.queue`

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,100
    Hello,

    You might give this https://www.directadmin.com/features.php?id=1737 a try and use /home/**username**/.backup_exclude_paths to exclude paths:

    A sample line in the .backup_exclude_paths would look like:

    Code:
    domains/domain.com/
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •