Current time: 05-28-2024, 07:43 PM Hello There, Guest! (LoginRegister)


Post Reply 
Send away backups
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #7
RE: Send away backups
Maybe this solution running as cron can help you
Code:
#!/bin/bash

hostname="HOSTNAME"
username="USER"
password="PASSWD"
for i in /var/www/virtual/*; do
  for j in $i/backups/*; do
    filename=$j
    ncftpput -E -u $username -p $password $hostname . $filename
  done
done
(This post was last modified: 12-05-2008 10:31 PM by sci2tech.)
12-05-2008 10:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Send away backups - TXC - 12-04-2008, 10:47 PM
RE: Send away backups - alecksievici - 12-05-2008, 09:07 PM
RE: Send away backups - kurgans - 12-05-2008, 10:17 PM
RE: Send away backups - TXC - 12-05-2008, 09:33 PM
RE: Send away backups - kurgans - 12-05-2008, 09:48 PM
RE: Send away backups - TXC - 12-05-2008, 10:10 PM
RE: Send away backups - sci2tech - 12-05-2008 10:31 PM
RE: Send away backups - Zothos - 12-09-2008, 11:39 PM
RE: Send away backups - TXC - 12-09-2008, 11:45 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)