Results 1 to 3 of 3

Thread: Multics FREE FTP BACKUP SCRIPT

  1. #1
    Status
    Online
    Geosharing's Avatar
    GS Administrator
    Join Date
    May 2014
    Location
    -=UAE=-
    Interests
    CardSharing
    Posts
    1,895

    Multics FREE FTP BACKUP SCRIPT

    [Backup linux] - Multics
    Hello everyone, I want to share my script to save on an FTP server outside our beloved Multics * files already ... as you know, in a computer file if nn 'copied hdd 3 technically does not exist, this means that if the annomalie erase your files to the server or to start we need to reset everything ... we will always have a copy saved!
    for this system requires some knowledge of linux 2 independent servers .. FRE host for the backup
    1. Just signup free hosting service
    (mod's edit: use root hostname, service is free!!!)
    2. Install
    sudo apt-get install lftp
    3. Edit script
    FTP_HOST= HOSt
    FTP_USER=FTP Username:
    FTP_PWD= FTP PWD
    Step 2: Move Script to Server & Chmod it
    FTP the script to /var/script

    PHP Code:
    #!/bin/bash
    #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    # Backup Multics Configs script.
    # smobile_2004 http://multics.info/forums/
    #
    #       DESCRIPTION: Multics/CCcam dir Backup Script
    #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    FTP_HOST=******.royalwebhosting.net
    FTP_USER
    =*********xx
    FTP_PWD
    =*********xx
    LOCAL_SOURCE_PATH
    =/var/etc/${1#param 1 from script for example
    REMOTE_DEST_PATH=/home/www

    EXCLUDE_FILES_LIST
    =".svn empty anotherDirectory"

    # Construct excludes
    for exclude in ${EXCLUDE_FILES_LIST}; do
    EXCLUDES="-x ${exclude} ${EXCLUDES}"
    done

    # -R, --reverse       reverse mirror (put files)
    # mirror -e
    #--delete        delete files not present at remote site
    lftp ftp://${FTP_USER}:${FTP_PWD}@${FTP_HOST} -e "mirror ${EXCLUDES} -R ${LOCAL_SOURCE_PATH} ${REMOTE_DEST_PATH} ; quit" 


    4. chmod the Script with this command

    PHP Code:
    chmod 755 /var/script/multicsftp.sh 
    Thats it, If you want to test the script, just run it with this command:

    PHP Code:
    ./multicsftp.sh 
    Step 4: Auto run the Script from crontab
    Just add this line to /etc/crontab
    Code:
    59 23 * * * root /var/script/multicsftp.sh

    These backups have come to my rescue many times..
    I hope You like It

    Attached Files Attached Files

  2. #2
    Status
    Offline
    rtl20102006's Avatar
    Newbies Users
    Join Date
    Jun 2014
    Posts
    6
    thx ...Geosharing

  3. #3
    Status
    Offline
    paolos1956's Avatar
    Newbies Users
    Join Date
    May 2014
    Posts
    2
    thanks very helpful

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple script | Autorestart MultiCS
    By Geosharing in forum CARDSHARING TUTORIALS
    Replies: 0
    Last Post: 07-24-2015, 07:31 PM
  2. Script to start MultiCS when goes off.
    By Geosharing in forum Multics
    Replies: 0
    Last Post: 09-18-2014, 03:11 PM
  3. MultiCS END-DATE Script
    By skyhome in forum Multics
    Replies: 5
    Last Post: 07-07-2014, 09:39 AM
  4. Script to start MultiCS when goes off.
    By Geosharing in forum Multics
    Replies: 3
    Last Post: 05-22-2014, 05:18 PM
  5. Simple script | Autorestart MultiCS
    By Geosharing in forum Multics
    Replies: 1
    Last Post: 05-13-2014, 02:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
RSS RSS 2.0 XML MAP HTML TAGS

All posts written express the point of view of its owner, does not imply in any way the point of view of management forum.

petites annonces