Results 1 to 8 of 8

Thread: a recursive copy of my home - with pv or rsync

  1. #1

    Default a recursive copy of my home - with pv or rsync

    hello


    want to do a recursive copy of my home drive to a external drive - in order to make a backup


    and i want to use pv - to have an overview on the progress.

    why does this fail

    Code:
        pv -p -e -r -b r martin/* > /run/media/martin/HDDRIVE2GO/medion/medion2017/

    this command fails -

    questions :
    - do i use too much parameter within the above mentioned pv-command?
    - besides this: how would i write this command with rsync
    - would i have an overview - in rsync too:

    there is such an option: showing-total-progress-in-rsync-is-it-possible

    Code:
    #> ./rsync -a --info=progress2 /usr .
        305,002,533  80%   65.69MB/s    0:00:01  xfr#1653, ir-chk=1593/3594)

    Love to hear from you
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,448

    Default Re: a recursive copy of my home - with pv or rsync

    Not sure of everything the pv command does but I use the equivalent of this:
    Code:
    rsync -av --delete /home/ /run/media/martin/HDDRIVE2GO/medion/medion2017/
    Add z if you want it compressed.

  3. #3

    Smile Re: a recursive copy of my home - with pv or rsync

    hello dear John

    many thanks for the answer.

    Looks great - i will try it out tomorrow
    (note: i do not have the external drive here - with me - will test it tomorrow)


    again - many thanks

    have a great day.
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,703

    Default Re: a recursive copy of my home - with pv or rsync

    What format is the target drive?? if a MS format ownership and permission are not preserved. You need to back to a Linux formatted partition or use TAR which preserves the permission bits. If you back to a Linux file system you can use cp or rsync. rsync is great because it only copies changed files so after the first backup the following go much faster. I backup to a ext2 formatted USB using luckybackup which is a nice GUI front end to rsync.

  5. #5

    Default Re: a recursive copy of my home - with pv or rsync

    hello dear gogalthorp

    many many thanks. The target-drive is ms-format.

    i think that i will reformate this - and do a Linuxformat.. - ext2 or so...

    Quote Originally Posted by gogalthorp View Post
    What format is the target drive?? if a MS format ownership and permission are not preserved. You need to back to a Linux formatted partition or use TAR which preserves the permission bits. If you back to a Linux file system you can use cp or rsync. rsync is great because it only copies changed files so after the first backup the following go much faster. I backup to a ext2 formatted USB using luckybackup which is a nice GUI front end to rsync.
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,793
    Blog Entries
    14

    Default Re: a recursive copy of my home - with pv or rsync

    You can use pv only on a single file. F.e.
    Code:
    pv /dev/sdX | dd of=/dev/sdY#/sdX.iso
    If you want the verbose output of rsync + the progress per file, use the -P (capital p) option.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,793
    Blog Entries
    14

    Default Re: a recursive copy of my home - with pv or rsync

    This page has a lot of nice examples, also for using pv
    http://www.cyberciti.biz/faq/show-pr...file-transfer/
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: a recursive copy of my home - with pv or rsync

    hello dear knurpth

    many thanks


    Quote Originally Posted by Knurpht View Post
    You can use pv only on a single file. F.e.
    Code:
    pv /dev/sdX | dd of=/dev/sdY#/sdX.iso
    If you want the verbose output of rsync + the progress per file, use the -P (capital p) option.
    will try it out tonight.

    btw:
    openSUSE Tumbleweed+Leap / is this different to
    openSUSE Tumbleweed+ OpenSuse 13.2
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •