Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Rsynced fullbackup file .master.meta is not writeable by root

Discussion in 'Data Protection' started by postcd, Jun 7, 2019.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    704
    Likes Received:
    16
    Trophy Points:
    68
    Hello, i am copying daily full backup files to a remote server using "rsync -av"
    And then using tmpwatch to remove too old (144 hours) remote daily backups
    tmpwatch -vvv --all -m 144 /destination/directory
    The result:
    When i list one empty accounts directory permissions:

    Other files was removed by tmpwatch, but only this dotfile remains undeletable by tmpwatch.
    Which permission this dotfile must have in order the backups are restorable? I can change its permissions but i do not want to break something.
    How would you fix this so tmpwatch can delete the .master.meta dotfile?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @postcd


    If you modify that command to add the -f flag (can be -vvvf) does it change the behavior? I'm curious because .master.meta is a root owned hidden file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    704
    Likes Received:
    16
    Trophy Points:
    68
    -f flag worked. Thank you
    Code:
           -f, --force
                  Remove files even if root doesn’t have write access (akin to rm -f).
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    That's what I was hoping for! Happy to hear it and thanks for following up @postcd
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice