Re: rsync

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Michael Havens
Date:  
To: Main PLUG discussion list
Subject: Re: rsync
I just thought of something... /dev/sdb* used to be /dev/sda* . But if that
had something to do with it I wouldn't of had access to /home (I think).
(sda is now a terabyte drive that holds windows. You know, I came into my
room before all of this happened to discover that my computer had
power-cycled on it's own. So many variables!

On Fri, Sep 25, 2015 at 11:06 AM, Michael Havens <> wrote:

> I don't know what happened..... I only have 1.1GB of room left. I am
> suspecting that /home isn't on the partition upon which I thought it was
> placed.... no....
>
>  $ df
> Filesystem     1K-blocks     Used Available Use% Mounted on
> /dev/sdb1       23642608 21331796   1086992  96% /
> none                   4        0         4   0% /sys/fs/cgroup
> udev             1975124        4   1975120   1% /dev
> tmpfs             404736     1512    403224   1% /run
> none                5120        0      5120   0% /run/lock
> none             2023672    65760   1957912   4% /run/shm
> none              102400       24    102376   1% /run/user
> /dev/sdb3      210643368 36649464 163270784  19% /home

>
> I thought maybe the trash needed to be empty but after I did so an
> refreshed only 4 bytes were freed...
>
>  $ df
> Filesystem     1K-blocks     Used Available Use% Mounted on
> /dev/sdb1       23642608 21331800   1086988  96% /
> none                   4        0         4   0% /sys/fs/cgroup
> udev             1975124        4   1975120   1% /dev
> tmpfs             404736     1512    403224   1% /run
> none                5120        0      5120   0% /run/lock
> none             2023672    66436   1957236   4% /run/shm
> none              102400       28    102372   1% /run/user
> /dev/sdb3      210643368 36649544 163270704  19% /home

>
> Is there a .Trash folder hidden somewhere? It isn't in /!
> What should i do?
>
> On Fri, Sep 25, 2015 at 10:24 AM, Michael Havens <> wrote:
>
>> I just stuck the drive in and let it automount. I suppose I could sudo
>> rsync but why didn't I have to before the --delete-before was added?
>>
>> On Fri, Sep 25, 2015 at 10:17 AM, Brian Cluff <> wrote:
>>
>>> Did you mount the drive as a different user than bmike1?
>>>
>>> Brian Cluff
>>>
>>> On 09/25/2015 05:12 AM, Michael Havens wrote:
>>>
>>>> It didn't do this before. Why will it not create a directory? But wait!
>>>> The directory already exists.
>>>>
>>>> bmike1@c521 ~ $ rsync -aWq --progress --delete-before
>>>> --compress-level=5
>>>> /home/bmike1/Documents /media/bmike1/"USB DISK"/
>>>> rsync: mkdir "/media/bmike1/USB DISK" failed: Permission denied (13)
>>>> rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.0]
>>>> bmike1@c521 ~ $ sudo mkdir "/media/bmike1/USB DISK"
>>>> [sudo] password for bmike1:
>>>> bmike1@c521 ~ $ rsync -aWq --progress --delete-before
>>>> --compress-level=5
>>>> /home/bmike1/Documents /media/bmike1/"USB DISK"/
>>>> rsync: recv_generator: mkdir "/media/bmike1/USB DISK/Documents" failed:
>>>> Permission denied (13)
>>>> *** Skipping any contents from this failed directory ***
>>>> rsync error: some files/attrs were not transferred (see previous errors)
>>>> (code 23) at main.c(1183) [sender=3.1.0]
>>>> bmike1@c521 ~ $
>>>>
>>>>
>>>> On Fri, Sep 25, 2015 at 2:33 AM, Brian Cluff <
>>>> <mailto:brian@snaptek.com>> wrote:
>>>>
>>>>     In rsync, incremental recursion, refers to memory saving technique
>>>>     where it starts transferring files while only reading in a subset of
>>>>     the list of files that will be transferred.
>>>>     If you use --delete-before rsync will have to know the whole list of
>>>>     files so it will know what to delete, so naturally incremental
>>>>     recursion gets turned off because leaving it on conflicts with that
>>>>     you have asked it to do.

>>>>
>>>>     Brian Cluff

>>>>
>>>>     On 09/24/2015 06:12 AM, Michael Havens wrote:

>>>>
>>>>         Thanks for sharing with me about --delete-before. In my
>>>> subsequent
>>>>         investigation into it's use I found the manpage says that using
>>>> that
>>>>         option disables 'incremental recursion'. What is 'incremental
>>>>         recurssion'? I assume that I will still be able to backup lower
>>>>         level
>>>>         directories.

>>>>
>>>>
>>>>                         Some options require rsync to know the full file
>>>>         list, so
>>>>            these
>>>>                         options  disable the incremental recursion
>>>>         mode.  These
>>>>         include:
>>>>                         --delete-before,   --delete-after,
>>>>         --prune-empty-dirs,
>>>>              and
>>>>                         --delay-updates.   Because of this, the default
>>>>         delete
>>>>         mode when
>>>>                         you specify --delete is now --delete-during
>>>>         when  both
>>>>            ends  of
>>>>                         the  connection are at least 3.0.0 (use --del or
>>>>         --delete-during
>>>>                         to request this improved deletion mode
>>>> explicitly).
>>>>         See  also
>>>>                         the  --delete-delay  option  that  is a better
>>>>         choice
>>>>         than using
>>>>                         --delete-after.

>>>>
>>>>
>>>>         On Wed, Sep 23, 2015 at 10:11 PM, James Crawford
>>>>         < <mailto:jrefl5@gmail.com>
>>>>         <mailto:jrefl5@gmail.com <mailto:jrefl5@gmail.com>>> wrote:

>>>>
>>>>              Mike,
>>>>                   you can have rsync do the deletes prior to copying
>>>>         files over
>>>>                       --delete-before         receiver deletes before
>>>>         xfer, not
>>>>              during
>>>>                   You can also delete the excluded files if you use some
>>>>         form of
>>>>              the exclude command,
>>>>                       --delete-excluded       also delete excluded files
>>>>         from
>>>>              dest dirs

>>>>
>>>>              James C.

>>>>
>>>>              ---------------------------------------------------
>>>>              PLUG-discuss mailing list -
>>>> 
>>>>         <mailto:PLUG-discuss@lists.phxlinux.org>
>>>>              <mailto:PLUG-discuss@lists.phxlinux.org

>>>>
>>>>         <mailto:PLUG-discuss@lists.phxlinux.org>>
>>>>              To subscribe, unsubscribe, or to change your mail settings:
>>>>         http://lists.phxlinux.org/mailman/listinfo/plug-discuss

>>>>
>>>>
>>>>
>>>>
>>>>         --
>>>>         :-)~MIKE~(-:

>>>>
>>>>
>>>>         ---------------------------------------------------
>>>>         PLUG-discuss mailing list - 
>>>>         <mailto:PLUG-discuss@lists.phxlinux.org>
>>>>         To subscribe, unsubscribe, or to change your mail settings:
>>>>         http://lists.phxlinux.org/mailman/listinfo/plug-discuss

>>>>
>>>>
>>>>     ---------------------------------------------------
>>>>     PLUG-discuss mailing list - 
>>>>     <mailto:PLUG-discuss@lists.phxlinux.org>
>>>>     To subscribe, unsubscribe, or to change your mail settings:
>>>>     http://lists.phxlinux.org/mailman/listinfo/plug-discuss

>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> :-)~MIKE~(-:
>>>>
>>>>
>>>> ---------------------------------------------------
>>>> PLUG-discuss mailing list -
>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>
>>>> ---------------------------------------------------
>>> PLUG-discuss mailing list -
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>>
>>
>>
>> --
>> :-)~MIKE~(-:
>>
>
>
>
> --
> :-)~MIKE~(-:
>




--
:-)~MIKE~(-:
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss