EToS
{ ADMIN }
posts: 13
last: 24-Sep-2008
TITLE: tarball and send result file via ssh
DESCRIPTION: tarball and send using pipes
Submitted: 10-Jan-2008 21:45:46 ( 51w 4d 10h ago ) Language: BASH (*.sh)
Views: 288 Lines of Code: 11 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 4.00 / 5 }
Difficulty: Intermediate
Bookmark
/* 
   use: simply replace folder/user/pass/255.255.255.255    with real information

   security: this is just as a last resort (or if your on a secure machine) because you dont want
             details stored in a public shells history file.. (but could use: history -c)
             
             use FTP or WinSCP in most ordinary cases
*/


tar cf - /home/test/folder | gzip -c | ssh -T -e none user:pass@255.255.255.255 'cat > /home/test/folder.tar.gz'