Using Hazel to Rename and Move Vault Backup

Hi,

I'm trying to use Hazel to rename vault backups (remove the date and time from the name) and then move the file to Dropbox. The problem is that the vault backup requires my admin password to be renamed (even from the Finder). Does anyone know a way around this?

Thanks.

Comments

  • khadkhad Social Choreographer

    Team Member
    Hey there, Mac User! :)

    There is no reason intrinsic to Knox that your backups would require administrator privileges in order to be modified. It sounds like there is something specific about your setup which is causing this to be the case.

    1. Is the account under which you are running an admin account?

    2. What is the full path of your backup folder?

    3. Which account owns the backup files?
  • Mac UserMac User
    edited October 2012
    Khad,

    khad wrote:

    1. Is the account under which you are running an admin account?


    Yes, with a password.

    khad wrote:

    2. What is the full path of your backup folder?


    /Users/chris/Vaults/Backups

    khad wrote:

    3. Which account owns the backup files?


    My account [chris].

    drwxr-xr-x 4 chris staff 136 Oct 22 17:05 .
    drwxr-xr-x 7 chris staff 238 Oct 18 18:39 ..
    [email protected] 8 chris staff 272 Oct 20 13:35 Test 2012-10-18 16.57.sparsebundle

    I can copy the backup from the command line. Renaming or removing requires sudo.
  • Mac User wrote:

    drwxr-xr-x 4 chris staff 136 Oct 22 17:05 .
    drwxr-xr-x 7 chris staff 238 Oct 18 18:39 ..
    [email protected] 8 chris staff 272 Oct 20 13:35 Test 2012-10-18 16.57.sparsebundle


    Haha... I think I see the issue here... the sparebundle needs to be writable (drwxr-xr-x) to be renamed without sudo.
  • khadkhad Social Choreographer

    Team Member
    edited October 2012
    Ah. A sparsebundle (as opposed to sparseimage) is reported as a folder rather than a file. A sparseimage can be renamed easily. A sparsebundle (folder) needs elevated permissions. Were you able to sort it out, or did you still need some more help?
  • khad wrote:

    Were you able to sort it out, or did you still need some more help?


    I tried setting some ACL's (delete, delete_child) on the backup directory which allowed me to remove the sparse bundle without problems, but I still could not rename. Therefore, I went the simple route and had Hazel "chmod +w" before renaming and moving, and that works.

    Now if I could have Knox automatically create a backup after the vault is unmounted... :)
  • khadkhad Social Choreographer

    Team Member
    I'll certainly pass your vote for that along to the developers. I'm glad things are working well. :)
This discussion has been closed.