Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Grabbing files from a remote machine

    I have a windows box with a share on it containing photos (\\family\pictures) and I have a linux server running RedHat 9. I was wanting to write some sort of script to run as a CRON job that would grab the contents of the share and copy them to the /data/pics directory on the server and then optionally delete them from the smb share. Does anyone know how I should go about this?

  2. #2
    Linux User
    Join Date
    Jan 2003
    Cardiff, Wales

    more define

    define optionally delete the files.

    also you need to think about overwriting files that have already been copied. maybe each time the script runs it should make a folder in the new dir called today's date and put the pics in there.

    why are you doing this?

    why not search for backup scripts. I have seen some before to automate amanda. but basic file copy stuff would work fine.

    what language(s) can you use?
    No trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.

  3. #3
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    You best bet would be to use bash / shell scripting there is a good howto on bash scripting at TLDP or you could look into CPIO for backups.

  4. $spacer_open
  5. #4
    Thanks Giro, I'll look into that

Posting Permissions

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