Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #219535

Re: scp overwriting precaution?

From Jochen Spieker <ml@well-adjusted.de>
Newsgroups linux.debian.user
Subject Re: scp overwriting precaution?
Date 2020-02-27 11:30 +0100
Message-ID <zEoAx-2TJ-3@gated-at.bofh.it> (permalink)
References <zEiv7-7rp-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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 spirit of not actually answering the question you asked,
you may want to take a brief moment, step back and think about what you
are actually doing.

Do you often copy files between one or more systems? Would you like to
keep a set of (smallish) files in sync? Would you like to selectively
have access to a subset of files from a bigger set of large files on
your server, which unfortunately does not fit completely on your laptop?

If so, it might be advantageous to look into a version control system
like git, or its descendant git-annex, or something easier like unison.

Also, you should be able to restore important files from your backup at
any time. If you cannot do this, for whatever reason, that should be
your top priority (wrt to computers :)).

Regards,
Jochen.
-- 
TFI Friday makes me feel very alone.
[Agree]   [Disagree]
                 <http://archive.slowlydownward.com/NODATA/data_enter2.html>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

scp overwriting precaution? Greg Marks <gtmarks@gmail.com> - 2020-02-27 05:00 +0100
  Re: scp overwriting precaution? Will Mengarini <seldon@eskimo.com> - 2020-02-27 06:20 +0100
  Re: scp overwriting precaution? David Christensen <dpchrist@holgerdanske.com> - 2020-02-27 07:00 +0100
  Re: scp overwriting precaution? Jochen Spieker <ml@well-adjusted.de> - 2020-02-27 11:30 +0100
  Re: scp overwriting precaution? Jonathan Dowland <jon+debian-user@dow.land> - 2020-02-27 11:30 +0100
  Re: scp overwriting precaution? Dan Purgert <dan@djph.net> - 2020-02-27 13:50 +0100
  Re: scp overwriting precaution? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-27 15:10 +0100
  Re: scp overwriting precaution? Charles Curley <charlescurley@charlescurley.com> - 2020-02-27 15:10 +0100

csiph-web