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


Groups > linux.debian.user > #227899

Re: rsync --delete

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Will Mengarini <seldon@eskimo.com>
Newsgroups linux.debian.user
Subject Re: rsync --delete
Date Sat, 17 Oct 2020 08:40:01 +0200
Message-ID <B0O2J-774-1@gated-at.bofh.it> (permalink)
References <B0Gox-2vP-7@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Sat Oct 17 06:37:56 2020
Old-Return-Path <seldon@eskimo.com>
X-Amavis-Spam-Status No, score=-6.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, MONEY=0.5] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.6
X-Greylist delayed 484 seconds by postgrey-1.36 at bendel; Sat, 17 Oct 2020 06:37:43 UTC
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=eskimo.com; s=default; t=1602916174; bh=4FnpYQNAzhDsELFCkL+sHgnSaNVT+deCfj9f4Q4wWoU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=jTlBb/9rZVFQtf2KFv5lvmBPJgGEzhfhjDxVyF7QQogmZRtN113ZNyhlG932cVuXQ dNugUk6LHuNkWoj3m3Ti+Icd7kjCSFH0Fva61cksrrmehM7SnVclllOoxELGl1WdqT uL35C9wY+Dske0raCWKfh+H5+40+7h9NhkT9iMsZqnO/lKeanXQNm/Ub+7IDlBblmH 05sZINqvVb07larNyLqtqQuexY3U6sw42YTeNlMOBWmklzChmd+iTePXDNDoMAWL9S YuiK0mil/y+WvChcU6eKD3rd9n+dee0FeGLHYCirWmP0y62Y2bol80hIXSIGARTMQA uuv9QPWaK3xcA==
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
Disposition-Notification-To Will Mengarini <seldon@eskimo.com>
User-Agent Mutt/1.10.1 (2018-07-13)
X-Virus-Status Clean
X-Mailing-List <debian-user@lists.debian.org> archive/latest/768270
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/20201017062934.GA30274@eskimo.com
Approved robomod@news.nic.it
Lines 27
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 16 Oct 2020 23:29:34 -0700
X-Original-Message-ID <20201017062934.GA30274@eskimo.com>
X-Original-References <20201016220942.GA4949@MikesPI>
Xref csiph.com linux.debian.user:227899

Show key headers only | View raw


* Mike McClain <mike.junk.46@att.net> [20-10/16=Fr 17:09 -0500]:
> [...] A section of the backup script is so:
> Params=(-a --inplace --delete);
> [...] 
> echo /usr/bin/rsync $Params --exclude-from=/home/mike/.rsync_exclude . $Flash/mike

Try this to be sure your shell is doing what you think:
debian/pts/14 bash ~ 23:20 0$a=(x y z)
debian/pts/14 bash ~ 23:20 0$echo $a
x
debian/pts/14 bash ~ 23:20 0$echo "$a"
x
debian/pts/14 bash ~ 23:21 0$echo "${a[@]}"
x y z
debian/pts/14 bash ~ 23:21 0$a=x y z # Suggested in another reply
bash: y: command not found
debian/pts/14 bash ~ 23:21 127$echo "$a"
x
debian/pts/14 bash ~ 23:25 0$a="x y z"
debian/pts/14 bash ~ 23:25 0$echo $a
x y z
debian/pts/14 bash ~ 23:26 0$echo "$a" # preferred
x y z
debian/pts/14 bash ~ 23:26 0$# When $a is embedded, quote *outer* string:
debian/pts/14 bash ~ 23:27 0$echo "foo $a bar"
foo x y z bar
debian/pts/14 bash ~ 23:27 0$

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


Thread

rsync --delete Mike McClain <mike.junk.46@att.net> - 2020-10-17 00:30 +0200
  Re: rsync --delete Klaus Singvogel <deb-user-ml@singvogel.net> - 2020-10-17 00:40 +0200
    Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-19 13:40 +0200
  Re: rsync --delete ellanios82 <ellanios82@gmail.com> - 2020-10-17 00:40 +0200
  Re: rsync --delete Charles Curley <charlescurley@charlescurley.com> - 2020-10-17 04:10 +0200
  Re: rsync --delete Will Mengarini <seldon@eskimo.com> - 2020-10-17 08:40 +0200
    Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-19 13:50 +0200
  Re: rsync --delete <tomas@tuxteam.de> - 2020-10-17 10:40 +0200
    Re: rsync --delete David <bouncingcats@gmail.com> - 2020-10-17 14:20 +0200
      Re: rsync --delete <tomas@tuxteam.de> - 2020-10-17 15:30 +0200
    Re: rsync --delete Mike McClain <mike.junk.46@att.net> - 2020-10-17 20:30 +0200
      Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-19 13:50 +0200
    Re: rsync --delete Andrei POPESCU <andreimpopescu@gmail.com> - 2020-10-18 12:50 +0200
  Re: rsync --delete Andy Smith <andy@strugglers.net> - 2020-10-17 17:30 +0200
  Re: rsync --delete David Christensen <dpchrist@holgerdanske.com> - 2020-10-18 00:10 +0200
    Re: rsync --delete Mike McClain <mike.junk.46@att.net> - 2020-10-19 01:40 +0200
    Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-19 14:00 +0200
      Re: rsync --delete Mike McClain <mike.junk.46@att.net> - 2020-10-19 21:10 +0200
        Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-19 21:20 +0200
          Re: rsync --delete Tixy <tixy@yxit.co.uk> - 2020-10-19 23:20 +0200
            Re: rsync --delete David Christensen <dpchrist@holgerdanske.com> - 2020-10-20 05:10 +0200
              Re: rsync --delete Tixy <tixy@yxit.co.uk> - 2020-10-20 09:30 +0200
                Re: rsync --delete David <bouncingcats@gmail.com> - 2020-10-20 10:00 +0200
                Re: rsync --delete Tixy <tixy@yxit.co.uk> - 2020-10-20 10:20 +0200
              Re: rsync --delete Andrei POPESCU <andreimpopescu@gmail.com> - 2020-10-20 11:10 +0200
        Re: rsync --delete David <bouncingcats@gmail.com> - 2020-10-19 23:20 +0200
      Re: rsync --delete David Christensen <dpchrist@holgerdanske.com> - 2020-10-20 05:20 +0200
        Re: rsync --delete David <bouncingcats@gmail.com> - 2020-10-20 06:10 +0200
          Re: rsync --delete Nicolas George <george@nsup.org> - 2020-10-20 12:10 +0200
        Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-20 13:50 +0200
          Re: rsync --delete The Wanderer <wanderer@fastmail.fm> - 2020-10-20 14:50 +0200
            Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-20 15:10 +0200
              Re: rsync --delete The Wanderer <wanderer@fastmail.fm> - 2020-10-20 15:50 +0200
                Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-20 16:10 +0200
    define (or translate, or substitute for) "interpolate": Re: rsync --delete rhkramer@gmail.com - 2020-10-19 14:30 +0200
      Re: define (or translate, or substitute for) "interpolate": Re: rsync --delete rhkramer@gmail.com - 2020-10-19 14:50 +0200
      Re: define (or translate, or substitute for) "interpolate": Re:  rsync --delete <tomas@tuxteam.de> - 2020-10-19 15:00 +0200
        Re: define (or translate, or substitute for) "interpolate": Re: rsync --delete rhkramer@gmail.com - 2020-10-20 02:10 +0200
          Re: define (or translate, or substitute for) "interpolate": Re: rsync  --delete David Christensen <dpchrist@holgerdanske.com> - 2020-10-20 05:50 +0200
  Re: rsync --delete Greg Wooledge <wooledg@eeg.ccf.org> - 2020-10-19 14:10 +0200

csiph-web