LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-05-2005, 03:43 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
saving newly created files using ftp on a network


I want to make a huge compressed backup file of my Slack 10 harddrive onto a networked drive. I have ftp setup right now for transferring files. Can I use ftp as the location to save a newly created file?
 
Old 05-05-2005, 08:13 PM   #2
buaku
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2 (2.4.31)
Posts: 119

Rep: Reputation: 15
Do you mean you wanna ftp it as you're zipping it or zip it then ftp it or what?

I'm not sure if you can zip it across an ftp. Samba might be a better way to go.
 
Old 05-05-2005, 08:46 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
maybe try nfs.
there were some threads about that last few weeks.

i don't know if you can send a file through ftp while it's being made.

egag

Last edited by egag; 05-05-2005 at 09:10 PM.
 
Old 05-06-2005, 01:02 AM   #4
nnsg
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1/10.1, Mandrake 9.1/10.1
Posts: 75

Rep: Reputation: 15
Don't know how to do it under CLI, but I think you can create archive with KDE app (e.g. ark) and save it using kio ftp slave.

Or in CLI, you can try something like this with ssh:

Code:
tar cvf - /somedir | gzip -c -9 | ssh somebody@somewhere.com cat ">" ~/archive.tar.gz
This will archive /somedir as archive.tar.gz, and directly save it as archive.tar.gz on somewhere.com under somebody's home directory. (Of course you have to set up sshd on server first)

Last edited by nnsg; 05-06-2005 at 01:06 AM.
 
Old 05-06-2005, 03:49 AM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
nnsg, that looks like what I would like to do (create a tarball and save it somewhere else using ftp). Do I need to be root to tar an entire Linux drive?
 
Old 05-06-2005, 03:54 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Yes linuxhippy, there are some files that are only readeable by root (like /var/log/syslog), you could also skip those files if they aren't important for you.

A example would be (for FTP, the ssh solution would be better but requieres you to have a ssh server):
Code:
tar cf - /somedir | gzip -c -9 | cat > ~/archive.tar.gz ; lftp ftp://yoursite -c put archive.tar.gz ; rm archive.tar.gz

Last edited by gbonvehi; 05-06-2005 at 04:09 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions for newly created files dialbat Linux - General 2 10-04-2004 02:58 PM
Can we access the newly created files after dd if=hda6_last_mon_backup of=/dev/hda6 murugesan Linux - Software 0 03-29-2004 08:42 AM
snort error: newly created file is older than distributed files! rufassa Linux - Security 1 11-07-2003 08:53 AM
Deleting the newly created files keeping the existing icorsi Linux - Newbie 2 10-07-2001 11:16 AM
Deleting newly created files keeping the existing ones icorsi Linux - General 0 10-07-2001 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration