Re: scp in crontab problem

2024-09-13 Thread Marcus Park
basti: /usr/bin/scp -i /home/userYX/.ssh/myKEY r...@example.com ... updated: it's really due to environment issue, after I add the '-i' path to scp, jobs run well now. Thanks basti.

Re: scp in crontab problem

2024-09-13 Thread Charles Curley
d why the private key? Usually one transfers the public key from one's own computer to another, and one keeps the private key, well, private. > > When I scp a file from this VPS to another one by hand without > password, it works. > > But when I put this scp into crontab,

Re: scp in crontab problem

2024-09-13 Thread Greg Wooledge
On Fri, Sep 13, 2024 at 20:24:51 +0800, Marcus Park wrote: > I have put the private key into my debian VPS (in ~/.ssh/ dir). Does this private key have a passphrase? > When I scp a file from this VPS to another one by hand without password, it > works. > > But when I put this s

Re: scp in crontab problem

2024-09-13 Thread basti
On 13.09.24 14:24, Marcus Park wrote: Hi list, I have put the private key into my debian VPS (in ~/.ssh/ dir). When I scp a file from this VPS to another one by hand without password, it works. But when I put this scp into crontab, it seems not work. The scp in crontab via private key

scp in crontab problem

2024-09-13 Thread Marcus Park
Hi list, I have put the private key into my debian VPS (in ~/.ssh/ dir). When I scp a file from this VPS to another one by hand without password, it works. But when I put this scp into crontab, it seems not work. The scp in crontab via private key didn't run as I expect, nothing was c

Re: scp overwriting precaution?

2020-02-27 Thread Greg Wooledge
On Wed, Feb 26, 2020 at 09:48:40PM -0600, Greg Marks wrote: >for file in "${@}" > do > files="$files $(pwd | sed > 's/\/home\//\/home\//g')/\"$file\"" > done >scp -T -p @[Server IP Address]:"$files"

Re: scp overwriting precaution?

2020-02-27 Thread Charles Curley
On Wed, 26 Feb 2020 21:48:40 -0600 Greg Marks wrote: > When using scp to copy files from my server to my laptop (both running > Debian 10 and both with the same directory tree), I like to back up > the files in case I discover that I've overwritten a newer version of > a f

Re: scp overwriting precaution?

2020-02-27 Thread Dan Purgert
On Feb 26, 2020, Greg Marks wrote: > When using scp to copy files from my server to my laptop (both running > Debian 10 and both with the same directory tree), I like to back up > the files in case I discover that I've overwritten a newer version of > a file with an older version.

Re: scp overwriting precaution?

2020-02-27 Thread Jochen Spieker
Greg Marks: > > When using scp to copy files from my server to my laptop (both running > Debian 10 and both with the same directory tree), I like to back up > the files in case I discover that I've overwritten a newer version of > a file with an older version. Fully in the sp

Re: scp overwriting precaution?

2020-02-27 Thread Jonathan Dowland
On Wed, Feb 26, 2020 at 09:48:40PM -0600, Greg Marks wrote: When using scp to copy files from my server to my laptop (both running Debian 10 and both with the same directory tree), I like to back up the files in case I discover that I've overwritten a newer version of a file with an

Re: scp overwriting precaution?

2020-02-26 Thread David Christensen
On 2020-02-26 19:48, Greg Marks wrote: When using scp to copy files from my server to my laptop (both running Debian 10 and both with the same directory tree), I like to back up the files in case I discover that I've overwritten a newer version of a file with an older version. (I seem to

Re: scp overwriting precaution?

2020-02-26 Thread Will Mengarini
any existing file that is] overwritten? This is built-in to rsync with its options --backup, --backup-dir, and --suffix. Generally, rsync is so much more capable than scp that I never use scp any more. * [full original post]: > When using scp to copy files from my server to my laptop (both ru

scp overwriting precaution?

2020-02-26 Thread Greg Marks
When using scp to copy files from my server to my laptop (both running Debian 10 and both with the same directory tree), I like to back up the files in case I discover that I've overwritten a newer version of a file with an older version. (I seem to make this mistake about once or twice a

Re: Fingerprint displayed by scp (new host) and in debian-installer

2018-01-26 Thread David Wright
On Fri 26 Jan 2018 at 08:30:43 (+), davidson wrote: > On Wed, 24 Jan 2018, David Wright wrote: > > >The stretch version of scp displays fingerprints using a SHA256 > >hash, but of course a jessie machine has no idea of what its > >fingerprint is except using an

Re: Fingerprint displayed by scp (new host) and in debian-installer

2018-01-26 Thread davidson
On Wed, 24 Jan 2018, David Wright wrote: The stretch version of scp displays fingerprints using a SHA256 hash, but of course a jessie machine has no idea of what its fingerprint is except using an MD5 hash. A question and suggestion: Is there a way to get stretch scp to show the fingerprint in

Fingerprint displayed by scp (new host) and in debian-installer

2018-01-24 Thread David Wright
The stretch version of scp displays fingerprints using a SHA256 hash, but of course a jessie machine has no idea of what its fingerprint is except using an MD5 hash. A question and suggestion: Is there a way to get stretch scp to show the fingerprint in MD5 when connecting to a new (jessie) host

Re: scp non root

2013-04-12 Thread Helmut Wollmersdorfer
su - is enough to make myself root after that and perform the necessary tasks. But… I sometimes need to copy some files from the server to my machine and want to use scp but… as my default user I do not have access to the files that I just have been able to access as root. So I need to

Re: scp non root

2013-04-11 Thread Bob Proulx
s you see is one such issue. Backup is another. > I sometimes need to copy some files from the server to my machine > and want to use scp but... as my default user I do not have access > to the files that I just have been able to access as root. So I need > to: > > - cp the

Re: scp non root

2013-04-11 Thread John L. Cunningham
On Thu, Apr 11, 2013 at 12:04:38PM +, Bonno Bloksma wrote: > > I sometimes need to copy some files from the server to my machine and want to > use scp but… as my default user I do not have access to the files that I just > have been able to access as root. So I need to: > &

Re: scp non root

2013-04-11 Thread Darac Marjal
On Thu, Apr 11, 2013 at 12:04:38PM +, Bonno Bloksma wrote: >Hi, > >  > >Our Linux servers have no users configured except for the default first >use besides root. These servers provide a service and do not require users >to log on to the machine. > >Of course root can

scp non root

2013-04-11 Thread Bonno Bloksma
and perform the necessary tasks. But... I sometimes need to copy some files from the server to my machine and want to use scp but... as my default user I do not have access to the files that I just have been able to access as root. So I need to: - cp the file to the /home/username directory

Re: file mode of scp/sftp

2012-01-05 Thread T o n g
On Thu, 05 Jan 2012 16:12:04 +, Camaleón wrote: > Additional info: . . . Bingo! Thanks a lot! -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subje

Re: file mode of scp/sftp

2012-01-05 Thread Camaleón
On Wed, 04 Jan 2012 18:48:31 +, T o n g wrote: > On Wed, 04 Jan 2012 17:23:12 +, Camaleón wrote: > >>> If users scp/sftp to my host, how is the default mode of files copied >>> determined? Is it from users' umask in their ~/.profile, or somewhere >>>

Re: file mode of scp/sftp

2012-01-04 Thread Roger Leigh
On Wed, Jan 04, 2012 at 06:48:31PM +, T o n g wrote: > On Wed, 04 Jan 2012 17:23:12 +, Camaleón wrote: > > >> If users scp/sftp to my host, how is the default mode of files copied > >> determined? Is it from users' umask in their ~/.profile, or somewher

Re: file mode of scp/sftp

2012-01-04 Thread T o n g
On Wed, 04 Jan 2012 17:23:12 +, Camaleón wrote: >> If users scp/sftp to my host, how is the default mode of files copied >> determined? Is it from users' umask in their ~/.profile, or somewhere >> else? > > For ssh connections I'm not sure this still a

Re: file mode of scp/sftp

2012-01-04 Thread Camaleón
On Wed, 04 Jan 2012 05:15:31 +, T o n g wrote: > If users scp/sftp to my host, how is the default mode of files copied > determined? Is it from users' umask in their ~/.profile, or somewhere > else? For ssh connections I'm not sure this still applies. Look at "man 8 s

file mode of scp/sftp

2012-01-03 Thread T o n g
Hi, If users scp/sftp to my host, how is the default mode of files copied determined? Is it from users' umask in their ~/.profile, or somewhere else? Thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBS

Re: dd or cp over network: should I use scp?

2011-02-27 Thread Celejar
On Sat, 26 Feb 2011 01:49:51 +0200 Dotan Cohen wrote: > On Fri, Feb 25, 2011 at 16:22, Celejar wrote: > > [Please don't cc me on replies.] > > > > Sorry. The Open Office list is just the opposite (we _must_ cc as one > need not be subscribed to post, and lots of new users don't > subscribe). I'

Re: dd or cp over network: should I use scp?

2011-02-27 Thread Celejar
On Fri, 25 Feb 2011 23:01:00 +0100 David Jardine wrote: > On Fri, Feb 25, 2011 at 10:40:55PM +0200, Andrei Popescu wrote: > > > I don't consider a debian-user subscriber a "typical desktop / laptop > > user" :) > > A typical debian-user subscriber may not be a typical desktop/laptop > user,

Re: dd or cp over network: should I use scp?

2011-02-26 Thread Andrei Popescu
On Sb, 26 feb 11, 01:49:51, Dotan Cohen wrote: > > I don't have numbers either, but POP3/IMAP/SMTP is certainly rare in > the under-30 crowd. Rare, as in they don't even know that options > exists, and don't understand how one could have email but not have > access to it from any web browser. I a

Re: dd or cp over network: should I use scp?

2011-02-25 Thread shawn wilson
On Fri, Feb 25, 2011 at 6:49 PM, Dotan Cohen wrote: > > On Fri, Feb 25, 2011 at 16:22, Celejar wrote: > > >> It is atypical as it is not webmail! Very few people today are using > >> something they access via POP3 or IMAP, and even most of those aren't > >> running on their desktop but rather at

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
On Fri, Feb 25, 2011 at 16:22, Celejar wrote: > [Please don't cc me on replies.] > Sorry. The Open Office list is just the opposite (we _must_ cc as one need not be subscribed to post, and lots of new users don't subscribe). I'm on 40+ lists so I loose track. >> It is atypical as it is not webm

Re: dd or cp over network: should I use scp?

2011-02-25 Thread David Jardine
On Fri, Feb 25, 2011 at 10:40:55PM +0200, Andrei Popescu wrote: > I don't consider a debian-user subscriber a "typical desktop / laptop > user" :) A typical debian-user subscriber may not be a typical desktop/laptop user, but a typical Debian desktop/laptop user may well be a debian-user subs

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Andrei Popescu
On Jo, 24 feb 11, 16:27:20, Boyd Stephen Smith Jr. wrote: > On Thursday 24 February 2011 16:10:09 Andrei Popescu wrote: > > On Jo, 24 feb 11, 16:33:09, Celejar wrote: > > > Certainly - but my advice stands for typical, general purpose desktops, > > > laptops and servers. > > > > I doubt typical, g

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Celejar
On Thu, 24 Feb 2011 18:08:28 -0500 shawn wilson wrote: > On Thu, Feb 24, 2011 at 4:33 PM, Celejar wrote: > > > On Thu, 24 Feb 2011 15:48:00 -0500 > > shawn wilson wrote: > > > > > On Feb 24, 2011 3:40 PM, "Celejar" wrote: > > > > > > > > On Thu, 24 Feb 2011 10:22:56 -0500 > > > > Curt Howland

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Celejar
On Thu, 24 Feb 2011 16:55:15 -0600 "Boyd Stephen Smith Jr." wrote: > On Thursday 24 February 2011 16:49:30 Celejar wrote: > > On Thu, 24 Feb 2011 16:27:20 -0600 > > "Boyd Stephen Smith Jr." wrote: > > > NB: I don't keep backups. I know I should, but I don't. I gave up after > > > calculating t

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Celejar
[Please don't cc me on replies.] On Fri, 25 Feb 2011 15:57:19 +0200 Dotan Cohen wrote: > On Fri, Feb 25, 2011 at 00:47, Celejar wrote: > > I always thought my getmail POP setup was pretty typical - I have it > > configured to use /var/spool/mail/username as the mail spool.  Is that > > atypical

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
On Fri, Feb 25, 2011 at 00:47, Celejar wrote: > I always thought my getmail POP setup was pretty typical - I have it > configured to use /var/spool/mail/username as the mail spool.  Is that > atypical, or a bad idea for some reason? > It is atypical as it is not webmail! Very few people today are

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
On Thu, Feb 24, 2011 at 22:40, Celejar wrote: > I'd strongly recommend backing up at least parts of /var (what if you > have mail in the mail spool when the system dies?). > Also, /var/www might be a bit important. Aren't the MySQL files in /var as well. I also do /opt if it exists. -- Dotan

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
On Thu, Feb 24, 2011 at 17:22, Curt Howland wrote: >> I need to dd or cp my laptop's harddrive over the LAN. > > Don't use dd if its a mounted file system. > Thanks! > scp will work, but you have to be careful about thing like symlinks > which scp WILL FOLLOW, an

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
eing different from those on a Debian box. >> Can I actually use dd over the network, maybe by piping to scp >> somehow? What is the canonical way of doing this? >> Thanks! > > Yes - if the disks are the same size, it's a no-brainer. My personal > preference >

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
On Thu, Feb 24, 2011 at 15:05, BOYPT wrote: > netcat may help: > > dd if=/dev/sdX | nc -l 4321 > > On the other box: > > nc ip.of.the.serverbox 4321 | dd of=/dev/sdY > Somehow I've never heard of netcat before. That is one handy feline. -- Dotan Cohen http://gibberish.co.il http://what-is-what

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
On Thu, Feb 24, 2011 at 14:44, Steven Ayre wrote: > You can use dd via ssh if you wish. I think the command would be: > dd if=/dev/sda1 | ssh user@host "dd of=/path/to/sda1.img" > Wow, that is really cool. I did not know that dd could be piped as such. Thanks! -- Dotan Cohen http://gibberish.c

Re: dd or cp over network: should I use scp?

2011-02-25 Thread Dotan Cohen
o you won't copy /dev etc.) > -P keeps partial copied files for faster stop-and-proceed, and shows a > progress bar > -z compresses the data stream > > This should give you an identical copy. Good luck! > Thanks, Sjoerd, I do use rsync when I need to copy only changes. I

Re: dd or cp over network: should I use scp?

2011-02-24 Thread shawn wilson
On Thu, Feb 24, 2011 at 4:33 PM, Celejar wrote: > On Thu, 24 Feb 2011 15:48:00 -0500 > shawn wilson wrote: > > > On Feb 24, 2011 3:40 PM, "Celejar" wrote: > > > > > > On Thu, 24 Feb 2011 10:22:56 -0500 > > > Curt Howland wrote: > > > > > > ... > > > > > > > But in general, it's necessary to ba

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Boyd Stephen Smith Jr.
On Thursday 24 February 2011 16:49:30 Celejar wrote: > On Thu, 24 Feb 2011 16:27:20 -0600 > "Boyd Stephen Smith Jr." wrote: > > NB: I don't keep backups. I know I should, but I don't. I gave up after > > calculating the size of the pile of DVDs I'd need to back up my 4TB file > > Why not use HD

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Celejar
On Thu, 24 Feb 2011 16:27:20 -0600 "Boyd Stephen Smith Jr." wrote: > On Thursday 24 February 2011 16:10:09 Andrei Popescu wrote: > > On Jo, 24 feb 11, 16:33:09, Celejar wrote: > > > Certainly - but my advice stands for typical, general purpose desktops, > > > laptops and servers. > > > > I doubt

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Celejar
On Fri, 25 Feb 2011 00:10:09 +0200 Andrei Popescu wrote: > On Jo, 24 feb 11, 16:33:09, Celejar wrote: > > > > Certainly - but my advice stands for typical, general purpose desktops, > > laptops and servers. > > I doubt typical, general purpose desktops and laptops (yes, I omitted > servers) ar

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Boyd Stephen Smith Jr.
On Thursday 24 February 2011 16:10:09 Andrei Popescu wrote: > On Jo, 24 feb 11, 16:33:09, Celejar wrote: > > Certainly - but my advice stands for typical, general purpose desktops, > > laptops and servers. > > I doubt typical, general purpose desktops and laptops (yes, I omitted > servers) are usi

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Andrei Popescu
On Jo, 24 feb 11, 16:33:09, Celejar wrote: > > Certainly - but my advice stands for typical, general purpose desktops, > laptops and servers. I doubt typical, general purpose desktops and laptops (yes, I omitted servers) are using /var/spool/mail or /var/spool/cron/crontabs Regards, Andrei --

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Celejar
On Thu, 24 Feb 2011 15:48:00 -0500 shawn wilson wrote: > On Feb 24, 2011 3:40 PM, "Celejar" wrote: > > > > On Thu, 24 Feb 2011 10:22:56 -0500 > > Curt Howland wrote: > > > > ... > > > > > But in general, it's necessary to back up only /etc and /home. These > > > are where settings and user data

Re: dd or cp over network: should I use scp?

2011-02-24 Thread shawn wilson
On Feb 24, 2011 3:40 PM, "Celejar" wrote: > > On Thu, 24 Feb 2011 10:22:56 -0500 > Curt Howland wrote: > > ... > > > But in general, it's necessary to back up only /etc and /home. These > > are where settings and user data are stored, and rebuilding the whole > > system it can be better to build

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Boyd Stephen Smith Jr.
(TOFU corrected.) On Thursday 24 February 2011 14:20:57 shawn wilson wrote: > On Feb 24, 2011 10:31 AM, "Steven Ayre" wrote: > > On 24 February 2011 15:06, Boyd Stephen Smith Jr. > > wrote: > > > On Thursday 24 February 2011 09:00:33 Steven Ayre wrote: > > >> No, it tries to talk to the rsync d

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Celejar
On Thu, 24 Feb 2011 10:22:56 -0500 Curt Howland wrote: ... > But in general, it's necessary to back up only /etc and /home. These > are where settings and user data are stored, and rebuilding the whole > system it can be better to build the "system" anew, then just recover > the user data and

Re: dd or cp over network: should I use scp?

2011-02-24 Thread shawn wilson
On Feb 24, 2011 10:31 AM, "Steven Ayre" wrote: > > Hmm, interesting. Didn't realise that was the case. > > -Steve > > > On 24 February 2011 15:06, Boyd Stephen Smith Jr. wrote: > > On Thursday 24 February 2011 09:00:33 Steven Ayre wrote: > >> No, it tries to talk to the rsync daemon by default, b

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 24 February 2011, Darac Marjal > That's Canonical with a capital C. This is canonical with a lower > case C. Having never heard the word used in a computer context except in reference to Canonical/Ubuntu, I plead simple error. Good thin

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Boyd Stephen Smith Jr.
On Thursday 24 February 2011 09:22:56 Curt Howland wrote: > > What is the canonical way of doing this? > > Canonical runs Ubuntu, you need to ask that question in the Ubuntu > forums. Whoa there! He used the word "canonical", not the trademark "Canonical". From wiktionary: Adjective canonical

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Darac Marjal
On Thu, Feb 24, 2011 at 10:22:56AM -0500, Curt Howland wrote: > > > What is the canonical way of doing this? > > Canonical runs Ubuntu, you need to ask that question in the Ubuntu > forums. This is the Debian user list, and while Ubuntu gets their > software packages mostly from Debian, they ha

re: dd or cp over network: should I use scp?

2011-02-24 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I need to dd or cp my laptop's harddrive over the LAN. Don't use dd if its a mounted file system. scp will work, but you have to be careful about thing like symlinks which scp WILL FOLLOW, and which can increase disk space use. &g

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Steven Ayre
Hmm, interesting. Didn't realise that was the case. -Steve On 24 February 2011 15:06, Boyd Stephen Smith Jr. wrote: > On Thursday 24 February 2011 09:00:33 Steven Ayre wrote: >> No, it tries to talk to the rsync daemon by default, but you can run >> it over ssh using: > > No, it only tries to

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Boyd Stephen Smith Jr.
On Thursday 24 February 2011 09:00:33 Steven Ayre wrote: > No, it tries to talk to the rsync daemon by default, but you can run > it over ssh using: No, it only tries to connect to an rsync daemon if the remote "URL" uses two colons like host::path. Otherwise it defaults to ssh. You can, of cou

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Boyd Stephen Smith Jr.
On Thursday 24 February 2011 07:13:29 Eduardo M KALINOWSKI wrote: > On Qui, 24 Fev 2011, Tixy wrote: > > What about hardlinks? I've always stuck to dd because I'm not confident > > rsync will give me an exact enough copy to completely restore the > > original from. > > rsync can preserve hard link

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Steven Ayre
eb 24, 2011 at 02:32:43PM +0200, Dotan Cohen wrote: >> > I need to dd or cp my laptop's harddrive over the LAN. For a reason >> > that I'd rather not get into I cannot remove the drive from the >> > laptop. >> > >> > Should I just use scp to copy

Re: dd or cp over network: should I use scp?

2011-02-24 Thread shawn wilson
drive from the > > laptop. > > > > Should I just use scp to copy over the LAN? Something like this? > > scp -r / root@178.63.65.136:/ > > Well... SSH has some overhead because it does encryption - you simply cannot > have encryption without _some_ overhead. > > I

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Jochen Schulz
Dotan Cohen: > > I need to dd or cp my laptop's harddrive over the LAN. For a reason > that I'd rather not get into I cannot remove the drive from the > laptop. What do you want to achieve? Cloning a filesystem that is in use always has some drawbacks, depending on the method. If you use LVM: use

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Celejar
On Thu, 24 Feb 2011 21:05:07 +0800 BOYPT wrote: > netcat may help: > > dd if=/dev/sdX | nc -l 4321 > > On the other box: > > nc ip.of.the.serverbox 4321 | dd of=/dev/sdY Or perhaps cryptcat, with built-in twofish encryption (I haven't played much with these tools, so this is just speculation

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Karl E. Jorgensen
Hi! On Thu, Feb 24, 2011 at 02:32:43PM +0200, Dotan Cohen wrote: > I need to dd or cp my laptop's harddrive over the LAN. For a reason > that I'd rather not get into I cannot remove the drive from the > laptop. > > Should I just use scp to copy over the LAN? Something l

Re: dd or cp over network: should I use scp?

2011-02-24 Thread shawn wilson
1. I think cp can make a block copy, if I'm remembering correctly with that, > you might want to see if scp can do the same. > 2. You could do > ... of=/dev/tcp/ip/port > (IIRC) on >2.4 kernels and get nc to catch and pipe the output. Don't know > how you'd deal wit

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Eduardo M KALINOWSKI
On Qui, 24 Fev 2011, Tixy wrote: What about hardlinks? I've always stuck to dd because I'm not confident rsync will give me an exact enough copy to completely restore the original from. rsync can preserve hard links, but that's not enabled by default by -a. IIRC the option is -H (or maybe -h

Re: dd or cp over network: should I use scp?

2011-02-24 Thread shawn wilson
I didn't know you could separate dd like Steven suggested - that's pretty cool. I'll add two ideas: 1. I think cp can make a block copy, if I'm remembering correctly with that, you might want to see if scp can do the same. 2. You could do ... of=/dev/tcp/ip/port (IIRC) on >

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Tixy
On Thu, 2011-02-24 at 13:41 +0100, Sjoerd Hardeman wrote: > Dotan Cohen schreef: > > I need to dd or cp my laptop's harddrive over the LAN. For a reason > > that I'd rather not get into I cannot remove the drive from the > > laptop. > > > > Should I j

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Ron Johnson
or pipe it via gzip+gunzip. Which is better (dd+ssh/scp) depends on your setup. dd copies the entire disk bit for bit, even unused space. On the plus side you get all data, permissions, layout. On the downside you're copying far more than you need to. Personally, I'd use scp unless I n

Re: dd or cp over network: should I use scp?

2011-02-24 Thread BOYPT
rom the > laptop. > > Should I just use scp to copy over the LAN? Something like this? > scp -r / root@178.63.65.136:/ > > Can I actually use dd over the network, maybe by piping to scp > somehow? What is the canonical way of doing this? > Thanks! > > -- > Dotan Cohen >

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Steven Ayre
You can use dd via ssh if you wish. I think the command would be: dd if=/dev/sda1 | ssh user@host "dd of=/path/to/sda1.img" You might also want to enable SSH compression, or pipe it via gzip+gunzip. Which is better (dd+ssh/scp) depends on your setup. dd copies the entire disk bit for

Re: dd or cp over network: should I use scp?

2011-02-24 Thread Sjoerd Hardeman
Dotan Cohen schreef: I need to dd or cp my laptop's harddrive over the LAN. For a reason that I'd rather not get into I cannot remove the drive from the laptop. Should I just use scp to copy over the LAN? Something like this? scp -r / root@178.63.65.136:/ I would use rsync, as

dd or cp over network: should I use scp?

2011-02-24 Thread Dotan Cohen
I need to dd or cp my laptop's harddrive over the LAN. For a reason that I'd rather not get into I cannot remove the drive from the laptop. Should I just use scp to copy over the LAN? Something like this? scp -r / root@178.63.65.136:/ Can I actually use dd over the network, maybe by

Re: only scp

2010-01-22 Thread Eric Gerlach
On Mon, Jan 18, 2010 at 11:35:25PM +0100, Johannes Wiedersich wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Andrei Popescu wrote: > > On Sat,16.Jan.10, 21:12:17, Vadkan Jozsef wrote: > >> anybody got any tips/howtos/docs for this?: > >> > &

Re: only scp

2010-01-18 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrei Popescu wrote: > On Sat,16.Jan.10, 21:12:17, Vadkan Jozsef wrote: >> anybody got any tips/howtos/docs for this?: >> >> - restrict the users, to only use scp ["no shell"] >> - but a root, admin can sti

Re: only scp

2010-01-16 Thread Andrei Popescu
On Sat,16.Jan.10, 21:12:17, Vadkan Jozsef wrote: > anybody got any tips/howtos/docs for this?: > > - restrict the users, to only use scp ["no shell"] > - but a root, admin can still login with ssh apt-cache show scponly Regards, Andrei -- Offtopic discussions among Debia

only scp

2010-01-16 Thread Vadkan Jozsef
anybody got any tips/howtos/docs for this?: - restrict the users, to only use scp ["no shell"] - but a root, admin can still login with ssh -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: No soft-links for scp?

2009-02-26 Thread Paul E Condon
with ssh through konqueror as well. > > >??If you don't want to get sshfs running then you could > > also try generating the links on the server side then using scp/rsync to > > get them. ??Something like: > > m...@server $ cd /tmp/links && cp -sR /path/to/dir ./ &a

Re: No soft-links for scp?

2009-02-26 Thread Dotan Cohen
fs running then you could > also try generating the links on the server side then using scp/rsync to > get them.  Something like: > m...@server $ cd /tmp/links && cp -sR /path/to/dir ./ && rsync -a > /tmp/links/ m...@laptop:~/links/`hostname` > I thought about doing that

Re: No soft-links for scp?

2009-02-26 Thread Owen Townend
are' and the browsable is something you >> are assuming, then perhaps something simple like this could work: >> >> $ find / > `hostname`.find.out && scp `hostname`.find.out m...@laptop:~/ >> >> Then it would simply be a matter of grepping the file for y

Re: No soft-links for scp?

2009-02-26 Thread Dotan Cohen
you > are assuming, then perhaps something simple like this could work: > > $ find / > `hostname`.find.out && scp `hostname`.find.out m...@laptop:~/ > > Then it would simply be a matter of grepping the file for your locations. > `find` has options to print much more informatio

Re: No soft-links for scp?

2009-02-26 Thread Owen Townend
d the browsable is something you are assuming, then perhaps something simple like this could work: $ find / > `hostname`.find.out && scp `hostname`.find.out m...@laptop:~/ Then it would simply be a matter of grepping the file for your locations. `find` has options to print much more

Re: No soft-links for scp?

2009-02-26 Thread Dotan Cohen
> You are mixing things up. A filesystem resides on a storage medium or on > a remote server. But to have access to any filesystem, you always have > to mount it into your local folder hierarchy. Only of you do that, you > have access to paths inside that filesystem and only then you can > symlink

Re: No soft-links for scp?

2009-02-26 Thread Jochen Schulz
Dotan Cohen: > 2009/2/26 Jochen Schulz : >> Dotan Cohen: >>> >>> I need to softlink to files on a remote machine on my home network. It >>> appears that scp does not support softlinks. Is there another way to >>> do this? >> >> Not dire

Re: No soft-links for scp?

2009-02-26 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [redirecting to list] Dotan Cohen wrote: >> I thought that had been answered already [1]. >> > > This is a continuation of that conversation. At that time, I was only > able to test cp's behaviour locally because I was not actually on the > network. T

Re: No soft-links for scp?

2009-02-26 Thread Dotan Cohen
> I think the only way to get what you want is to mount it using sshfs as > suggested elsewhere, and use cp as you would locally. When you're browsing > using fish:// or whatever, you're not browsing a filesystem in the > traditional sense; you're browsing data on a remote computer. KDE happens > t

Re: No soft-links for scp?

2009-02-26 Thread Aneurin Price
On Thu, Feb 26, 2009 at 3:11 PM, Dotan Cohen wrote: >> I thought that had been answered already [1]. >> > > This is a continuation of that conversation. At that time, I was only > able to test cp's behaviour locally because I was not actually on the > network. The cp command behaved as I wanted fo

Re: No soft-links for scp?

2009-02-26 Thread Dotan Cohen
> Similar example: > rsync -azvxH --delete -e "ssh -l -o -c arcfour" > e...@192.168.0.351:/home/archive/ archive > Thanks, but this copies the actual files, whereas I only want system links to the files. I don't have enough room on this laptop for the files themselves, but I do need to have a brow

Re: No soft-links for scp?

2009-02-26 Thread Dotan Cohen
> I thought that had been answered already [1]. > This is a continuation of that conversation. At that time, I was only able to test cp's behaviour locally because I was not actually on the network. The cp command behaved as I wanted for making trees of other local directories, but now that I'm on

Re: No soft-links for scp?

2009-02-26 Thread Andrew McGlashan
Hi, Dotan Cohen wrote: I need to softlink to files on a remote machine on my home network. It appears that scp does not support softlinks. Is there another way to do this? Use rsync, it works very well and if you have a directory that may change over time, then the updates will be quicker

Re: No soft-links for scp?

2009-02-26 Thread Johannes Wiedersich
Dotan Cohen wrote: > What I need is the file directory tree of a remote system, browsable > locally even when that system is offline. I thought that had been answered already [1]. Alternatively, create the symlinked copy while the remote fs is mounted. When the remote system is up you could use i

Re: No soft-links for scp?

2009-02-26 Thread Dotan Cohen
2009/2/26 Jochen Schulz : > Dotan Cohen: >> >> I need to softlink to files on a remote machine on my home network. It >> appears that scp does not support softlinks. Is there another way to >> do this? > > Not directly. Softlinks always point to filesystems in you

Re: No soft-links for scp?

2009-02-26 Thread Jochen Schulz
Dotan Cohen: > > I need to softlink to files on a remote machine on my home network. It > appears that scp does not support softlinks. Is there another way to > do this? Not directly. Softlinks always point to filesystems in your local hierarchy. A workaround is to use sshfs (or NFS

No soft-links for scp?

2009-02-26 Thread Dotan Cohen
I need to softlink to files on a remote machine on my home network. It appears that scp does not support softlinks. Is there another way to do this? Example: $ scp -sRp e...@192.168.0.351:/home/archive . scp fails because it doesn't have the -s option. The same command with cp fails becaus

Re: scp GUI?

2009-02-22 Thread Emanoil Kotsev
Nagy Daniel wrote: > Is there a GUI for SCP? I mean like browsing through scp just like in a > folder, in Midnight Commander. > > Thank you! I've been using gftp. I think it can be set using SCP regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

Re: scp GUI?

2009-02-21 Thread Douglas A. Tutty
On Fri, Feb 20, 2009 at 06:48:47PM +0100, Nagy Daniel wrote: > Is there a GUI for SCP? I mean like browsing through scp just like in a > folder, in Midnight Commander. I think that gftp can do it too. Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subj

Re: scp GUI?

2009-02-20 Thread Tzafrir Cohen
On Fri, Feb 20, 2009 at 08:49:12PM +0100, Nagy Daniel wrote: > I want to "scp gui" into a dd-wrt router, but it say's: > > sh: /usr/libexec/sftp-server: not found > > remote host has disconnected > > I'm searching for an "scp gui", not sftp,

  1   2   3   4   >