Skip to main content

Downloading incremental backups

Comments

3 comments

  • cPanelMichael
    Hello, You'd want to first create the archive itself using the "tar" utility. The following StackOverflow explains how this works when using the "tar" utility: Dereferencing hard links Thank you.
    0
  • uk01
    Hi Michael, Thanks, I did some tests on an account with no changed files. First backup /backups/2017-10-23/accountname Downloaded the folder via Cyberduck = 902mb OK - full folder download from first backup Latest backup /backups/2017-10-25/accountname Downloaded the folder via Cyberduck = 902mb OK - so it downloaded all files via the symlinks Tar test First backup /backups/2017-10-23/accountname Tar via Cyberduck to accountname.tar.gz = 788mb OK - full size tar from first backup Latest backup /backups/2017-10-25/accountname Tar via Cyberduck to accountname.tar.gz = 788mb OK - so it created tar via the symlinks SSH tar test tar -zcf accountname.tar.gz /backups/2017-10-23/accounts/whmwork 788mb tar -zcf accountname.tar.gz /backups/2017-10-25/accounts/whmwork 788mb So it seems the tar does follow symlinks ok and creates an archive. You linked me to another article which mentions -h, --dereference follow symlinks; archive and dump the files they point to --hard-dereference follow hard links; archive and dump the files they refer to Which of these and where/why do we need to use them? Thanks
    0
  • cPanelMichael
    Hello, You shouldn't need to use them, as you noticed the "tar" command you used should handle it by default. Here's a third-party URL discussing hard links and symlinks: What is a hard link? -- definition by The Linux Information Project (LINFO) Thank you.
    0

Please sign in to leave a comment.