1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Fanuc automated backups

  • JuiceeMan
  • March 20, 2019 at 9:35 PM
  • Thread is Resolved
  • JuiceeMan
    Reactions Received
    3
    Trophies
    3
    Posts
    16
    • March 20, 2019 at 9:35 PM
    • #1

    Hello, what are some of the best ways to automate backups for dozens of Fanuc robots over FTP. The option needs to be free and create new directories on the PC. I currently have a FTP script that backups all the robots but it does not create new directories on the PC with Time & Date stamps. What do you guys recommend for this process?

    :help:

  • HawkME
    Reactions Received
    568
    Trophies
    11
    Posts
    3,268
    • March 20, 2019 at 11:40 PM
    • #2

    If you want to DIY, you can write script or program that creates the directories then runs the ftp script.

    Sent from my SM-G930V using Tapatalk

  • Nation
    Typical Robot Error
    Reactions Received
    544
    Trophies
    9
    Posts
    1,924
    • March 21, 2019 at 2:40 AM
    • #3

    Once you have the script written, use windows task scheduler to fire it occasionally.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • JuiceeMan
    Reactions Received
    3
    Trophies
    3
    Posts
    16
    • March 21, 2019 at 1:07 PM
    • #4

    Yup DIY is the plan, going to try WinSCP. Also I will look into the windows task scheduler.

    :merci:

  • HawkME
    Reactions Received
    568
    Trophies
    11
    Posts
    3,268
    • March 21, 2019 at 1:49 PM
    • #5

    I assume you are programming on a Windows PC. In that case you can go the route of writing a script (Batch, Powershell, Vbscript) or you can write a .NET application (C# or VB). Then you can choose to use the command line FTP script method or the .NET FTPWebRequest method in your script/program. This doesn't require any add on's such as WinSCP.

    For quick and easy I recommend writing a script. Doesn't require any extra software and once you learn how to use it, it won't take long.

  • JuiceeMan
    Reactions Received
    3
    Trophies
    3
    Posts
    16
    • March 22, 2019 at 2:37 PM
    • #6

    Yup windows PC. And I have gone the scripting route. When I copy and paste script into CMD prompt it works perfectly. But when I save as a .bat it stops working as soon as I enter the FTP part of the script. What is a good work around for this? My script runs CMD code, then FTP code then CMD code then it is done.

  • Beek
    Reactions Received
    2
    Trophies
    4
    Posts
    36
    • March 22, 2019 at 2:59 PM
    • #7

    We are using the backup tool from onerobotics. Its free.

    https://www.onerobotics.com/apps/fanuc_robot_backup_tool/

  • HawkME
    Reactions Received
    568
    Trophies
    11
    Posts
    3,268
    • March 22, 2019 at 3:12 PM
    • #8

    You need to use the CMD code to write the FTP script to a text file, then you can call the FTP script. Here is an example:

    echo anon>ftp.txt
    echo bin>>ftp.txt
    echo prompt>>ftp.txt
    echo lcd !myfolder!>>ftp.txt
    echo mget *.*>>ftp.txt
    echo quit>>ftp.txt
    ftp -v -s:ftp.txt !RobotIPaddress!
    del ftp.txt


    The Echo command with the > will write the next bit of text to to the specified text file. > creates the file and >> appends text. Then the ftp -s: command runs the specified text file as an ftp script. Finally I delete the ftp.txt file. The words surrounded by exclamation points ! are variables that get written to the text file as the value. so you can target a different folder and ip address. This way I can generate a unique ftp script each time to target a different local directory and robot IP address.

    I recommend ss64.com for information on using the ftp and the CMD language.

    Edited once, last by HawkME (March 22, 2019 at 3:14 PM).

  • JuiceeMan
    Reactions Received
    3
    Trophies
    3
    Posts
    16
    • March 22, 2019 at 4:53 PM
    • #9

    OK thanks, everything works perfectly now.

    :merci:

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download