This is a staging forum for AgileBits, not an official support forum. Visit http://discussions.agilebits.com instead.

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

  • khad
    khad Social Choreographer
    Hey there, Mac User! <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />



    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 User
    edited October 2012
    Khad,



    [quote name='khad' timestamp='1350943045' post='62748']

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

    [/quote]



    Yes, with a password.



    [quote name='khad' timestamp='1350943045' post='62748']

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

    [/quote]



    /Users/chris/Vaults/Backups



    [quote name='khad' timestamp='1350943045' post='62748']

    3. Which account owns the backup files?

    [/quote]



    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 ..

    dr-xr-xr-x@ 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.
  • [quote name='Mac User' timestamp='1350944270' post='62749']

    drwxr-xr-x 4 chris staff 136 Oct 22 17:05 .

    drwxr-xr-x 7 chris staff 238 Oct 18 18:39 ..

    dr-xr-xr-x@ 8 chris staff 272 Oct 20 13:35 Test 2012-10-18 16.57.sparsebundle

    [/quote]



    Haha... I think I see the issue here... the sparebundle needs to be writable (drwxr-xr-x) to be renamed without sudo.
  • khad
    khad Social Choreographer
    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?
  • [quote name='khad' timestamp='1350975638' post='62753']

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

    [/quote]



    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... <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />
  • khad
    khad Social Choreographer
    I'll certainly pass your vote for that along to the developers. I'm glad things are working well. <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />