PDA

View Full Version : batch script back up


monmoc
03-22-2009, 12:02 PM
does anyone know of a simple code that I can run off my thumb drive that will auto back up a few files off the desktop and onto the thumb drive and a server?

pepsi_max2k
03-23-2009, 11:30 AM
http://www.computerhope.com/unix/ucp.htm

just cp them? are you on linux or win? linux would be as easy as:



#!/bin/sh

cp /home/user/Desktop/files/*.* /usb_stick_root/files



sorry... read batch as bash... oh well... copy command it is. dunno how to batch it but shouldn't be hard.
http://www.computerhope.com/copyhlp.htm

copy c:\Documents and Settings\User\Desktop\files\*.* J:\usbfiles