rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] Windows Directory Permissions


From: tkeene
Subject: [rdiff-backup-users] Windows Directory Permissions
Date: Sun, 08 Mar 2009 22:14:47 -0400

Ok, here it goes:

1. 1.2.7 behaves identically to 1.3.2

2. Running Vista x64 with latest cygwin.

3. icacls output on source:

PS C:\Users\Tommy> icacls C:\Users\Tommy\Documents
C:\Users\Tommy\Documents NT AUTHORITY\SYSTEM:(RX)
                      
   CHESED\Tommy:(RX)
                      
   Everyone:(RX)
                      
   CHESED\None:(RX)
                      
   CHESED\Tommy:(I)(OI)(CI)(F)
                      
   NT 
AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                      
  
 BUILTIN\Administrators:(I)(OI)(CI)(F)

Successfully processed 1 files; Failed processing 0 files

And on destination:


> PS C:\Users\Tommy> icacls B:\chesedrdiff
> B:\chesedrdiff CHESED\Tommy:(D,Rc,WDAC,WO,WEA,WA)
>                CHESED\None:(Rc,REA,RA)
>                Everyone:(Rc,REA,RA)
>                Everyone:(OI)(CI)(IO)(Rc,S,REA,RA)
>                CHESED\Tommy:(OI)(CI)(IO)(F)
> 
> Successfully processed 1 files; Failed processing 0 files


4. Finally: ls -l on source:

PS C:\Users\Tommy> ls -l C:\Users\Tommy\Documents


    Directory: 
Microsoft.PowerShell.Core\FileSystem::C:\Users\Tommy\Documents


Mode                LastWriteTime  
   Length Name
----                -------------  
   ------ ----
d----         4/22/2008   3:04 PM  
          Accounts
d----        10/14/2008   3:32 PM  
          AceBackup
d----          3/7/2009  12:01 AM  
          Backup Scripts
d----        10/14/2008  12:44 PM    
        Bible Study
d----         8/27/2008   9:48 AM  
          bitpim
d----        10/16/2007   7:10 PM  
          Bluetooth Exchange Folder
d----        10/17/2007  12:40 AM    
        cdDesigns
d----        10/17/2007  12:40 AM    
        Christianity
d----        10/17/2007  12:40 AM    
        Church Documents
d----          3/6/2009   7:25 AM  
          cpuTools
d----        10/10/2008   4:12 PM  
          DonationCoder
d----          2/3/2009   8:57 PM  
          Downloads
d----        10/17/2007  12:40 AM    
        finances
d----        10/17/2007  12:40 AM    
        Furman
d----        10/17/2007   1:09 AM  
          Graduate Programs
d----        10/25/2007  12:17 PM    
        Guild Wars
d----          1/1/2009   7:20 PM  
          Hercules webcam
d----        10/17/2007   1:09 AM  
          JanesWedding
d----        10/18/2007   2:59 PM  
          Job Search
d----        10/11/2008   8:45 PM  
          linuxTools
d----        10/17/2007  12:39 AM    
        My Audio Recordings
d-r--          1/7/2009   9:29 PM  
          My Dropbox
d----         4/19/2008   8:22 PM  
          My Google Gadgets
d-r--        10/17/2007  12:39 AM    
        My Library
d----        10/17/2007  12:39 AM    
        My Notes
d----         1/19/2009   4:14 PM  
          My Received Podcasts
d----         7/27/2008   5:45 PM  
          My Weblog Posts
d-r--        10/17/2007  12:39 AM    
        My Writing
d----        10/17/2007  12:39 AM    
        Operating Manuals
d----         5/21/2008  12:10 PM  
          PcSetup
d----        10/14/2008   1:32 PM  
          PersBackup
d----         5/27/2008  11:51 AM  
          Picasa HTML Exports
d----         2/25/2009   6:23 PM  
          Quicken
d----         2/10/2009  12:10 PM  
          Recipes
d----         1/19/2009   3:31 PM  
          Recordings
d----        10/17/2007   1:10 AM  
          Sarah's Docs
d----        10/17/2007   1:10 AM  
          Scans
d----         5/10/2008   1:03 AM  
          Small Business Accounting
d----        10/17/2007   1:10 AM  
          Symantec
d----        10/18/2007  11:04 PM    
        Updater5
d----        10/17/2007   1:10 AM  
          Wedding!
d----         2/18/2009   7:40 PM  
          WTS
d----          3/8/2009  12:55 AM  
          Zotero
-a---         2/12/2009  10:43 AM  
       81 .~lock.information.xls#
-a---         2/20/2008   7:13 PM  
     1299 Addresses.odb
-a---         4/14/2008   4:10 PM  
     1299 Addresses2.odb
-a---         4/19/2008   9:16 PM  
     1299 Addresses3.odb
-a---         5/20/2007   7:28 PM  
    25600 Aetna Appeals.doc
-a---         8/17/2006  10:25 PM  
    39936 Annes Book.doc
-a---         8/18/2006   6:14 PM  
    39936 anneStoddardPresent.doc
-a---         2/18/2007   7:33 PM  
    13824 Anniversary Trip Options.xls
-a---         6/28/2002   9:48 PM  
    32256 aStoryForSarah.doc
-a---         2/13/2008   3:55 PM  
    25600 baby shower thank you.doc
-a---         4/14/2008   1:11 PM  
    16896 Baby Stuff.xls
-a---         2/20/2008   7:19 PM  
     1299 BabyAddresses.odb
-a---         4/25/2008  11:44 AM  
   106496 BabyShowers 2.xls
-a---         7/20/2008   5:04 PM  
    28160 BabyShowers.xls
-a---         2/29/2008   8:08 AM  
   615424 Birth Right Client History.doc
-a---         2/13/2008   5:04 PM  
    44544 Birth_Right_Childbirth_Class_Client_Histo
-a---        12/20/2005   6:40 PM  
    25600 Budget.xls
-a---         7/24/2008  10:52 AM  
   195336 Car For Sale.docx
-a---        12/15/2008  10:18 PM    
 168238 cc_20081215_221821.reg
-a---        11/24/2006  12:33 AM    
  41472 Christmas List.xls
-a---         1/26/2005  12:39 PM  
    30208 Contractor Information.doc
-a---         3/29/2007  10:00 AM  
    12448 critiqueKee.odt
-a---        12/19/2007   9:14 PM  
    92160 Dallas Baby Stores.doc
-a---          9/5/2008  11:36 AM  
    26112 Dear IBM.doc
-a---          7/3/2007  11:10 AM  
    96256 Dunson Gift from James.doc
-a---          7/6/2007   5:59 PM  
    25088 Dunson Shower Guest List.xls
-a---         6/16/2007   9:08 AM  
    24576 Dunson Shower Invite 2007.doc
-a---          7/5/2007   9:59 PM  
    24576 Dunson shower.doc
-a---        12/15/2006   2:52 PM  
    20484 exam.odt
-a---         9/30/2007   1:35 PM  
    28672 Exercise Chart.doc
-a---         5/11/2008   9:24 PM  
   251392 fitnessLog.doc
-a---         5/11/2008   7:43 PM  
   219524 fitnessLog.docx
-a---         5/11/2008   7:50 PM  
    43007 fitnessLog.pdf
-a---         7/17/2008   3:42 PM  
    84992 fordExplorer.dot
-a---         3/12/2006  11:34 PM  
    40448 France Trip.doc
-a---         7/14/2005  11:23 PM  
    45056 Garden Calendar.doc
-a---          3/3/2003  11:06 PM  
    82432 GUEST LIST.xls
-a---          2/2/2007   9:19 PM  
      552 Guild Wars.lnk
-a---        11/13/2005   8:44 PM  
    19968 Hark the herald angels sing.doc
-a---          3/6/2008  12:16 PM  
    26112 Home Projects.doc
-a---        12/19/2006  10:18 PM    
  12722 Hot Chocolate.docx
-a---          3/2/2009   3:07 PM  
    22528 information.xls
-a---         3/26/2008   4:56 PM  
    13004 James.docx
-a---         4/19/2008  10:24 PM  
    18227 labels.odt
-a---         2/15/2005   3:28 PM  
    31744 Linksys Complaint.doc
-a---         4/29/2007   8:22 PM  
     5046 Log.txt
-a---         4/25/2005  11:29 PM  
    37888 More Updates.doc
-a---         9/21/2006   5:39 PM  
     6186 My Favorite Theme.theme
-a---        11/10/2007   7:57 AM  
     6168 My Theme.Theme
-a---         10/1/2007  10:36 AM  
     7423 New Document.odt
-a---          9/5/2008  11:37 AM  
       10 New Text Document.txt
-a---          9/8/2005   9:34 AM  
     2268 Notes Keyboard Shortcuts.cfg
-a---         9/13/2003   3:02 PM  
    29184 OfficeMax Labels.doc
-a---          9/8/2005   9:31 AM  
     2156 OooKeyConfig- Notes.cfg
-a---         4/26/2005   3:44 PM  
    37376 Option 1.doc
-a---         1/14/2008   1:42 PM  
    15872 Pregnancy Tracking.xls
-a---         4/16/2007   4:24 PM  
    14336 Price Comparison.xls
-a---         3/22/2008  10:49 PM  
    24576 prosandcons.doc
-a---        11/27/2007   1:04 PM  
    27648 Questions for Janet.doc
-a---        11/30/2004  11:27 AM    
  46592 Return Address Labels.doc
-a---         3/26/2008   3:25 PM  
    26112 Sarah Keene Birth Plan.doc
-a---         7/20/2005  12:31 PM  
    35840 Scotts Letter.doc
-a---         4/16/2004   4:18 PM  
    36864 Sermon- John 16.1-15.doc
-a---          3/8/2009  11:57 AM  
   585728 setup.exe
-a---          3/2/2007   2:16 PM  
      570 Shortcut to pcsx2.lnk
-a---          1/8/2008   5:40 PM  
    15360 shower list.xls
-a---         7/20/2005   4:47 PM  
    34816 United Letter.doc
-a---        11/16/2005   7:21 PM  
    36352 wedding program1.doc
-a---         9/12/2005   8:19 PM  
    35328 Wedding.xls

And on destination (after running rdiff-backup):

PS C:\Users\Tommy> ls -l B:\chesedrdiff
Get-ChildItem : Access to the path 'B:\chesedrdiff' is denied.
At line:1 char:3
+ ls&nbsp; <<<< -l B&#58;\chesedrdiff
PS C&#58;\Users\Tommy>

After running rdiff-backup I can go to the destination folder in Windows 
explorer and double click on it. That brings up a dialogue that says it needs 
to change permissions for me to access the files, shoudl it continue? If I say 
yes, then run ls -l on that directory, the following is the output:

PS C&#58;\Users\Tommy> ls -l B&#58;\chesedrdiff


&nbsp; &nbsp; Directory&#58; 
Microsoft.PowerShell.Core\FileSystem&#58;&#58;B&#58;\chesedrdiff


Mode&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LastWriteTime&nbsp; 
&nbsp; &nbsp;Length Name
----&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -------------&nbsp; 
&nbsp; &nbsp;------ ----
d----&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3/8/2009&nbsp; &nbsp;9&#58;56 PM&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rdiff-backup-data
d----&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4/10/2008&nbsp; &nbsp;8&#58;27 PM&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Users


PS C&#58;\Users\Tommy>


And this for icacls:

PS C&#58;\Users\Tommy> icacls B&#58;\chesedrdiff
B&#58;\chesedrdiff CHESED\Tommy&#58;&#40;D,Rc,WDAC,WO,WEA,WA&#41;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;CHESED\None&#58;&#40;Rc,REA,RA&#41;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;Everyone&#58;&#40;Rc,REA,RA&#41;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;Everyone&#58;&#40;OI&#41;&#40;CI&#41;&#40;IO&#41;&#40;Rc,S,REA,RA&#41;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;CHESED\Tommy&#58;&#40;OI&#41;&#40;CI&#41;&#40;IO&#41;&#40;F&#41;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;CHESED\Tommy&#58;&#40;OI&#41;&#40;CI&#41;&#40;RX&#41;

Successfully processed 1 files; Failed processing 0 files
PS C&#58;\Users\Tommy>

Running cygwin under my user account, which has administrative privileges.

Here is the information provided by rdiff-backup:


> address@hidden ~
> $ cd /cygdrive/c/Users/Tommy/Documents/Backup\ Scripts/
> 
> address@hidden /cygdrive/c/Users/Tommy/Documents/Backup Scripts
> $ ./rdiffChesed.sh
> ----------------------------------------
>  * Running Backup Script
> ----------------------------------------
> Using rdiff-backup version 1.3.2
> Unable to import module xattr.
> Extended attributes not supported on filesystem at /cygdrive/c
> POSIX ACLs test skipped. rdiff-backup run with --no-acls option.
> Windows ACLs test skipped. rdiff-backup run with --no-acls option.
> -----------------------------------------------------------------
> Detected abilities for source (read only) file system:
>   Access control lists                         Off
>   Extended attributes                          Off
>   Windows access control lists                 Off
>   Case sensitivity                             Off
>   Escape DOS devices                           On
>   Escape trailing spaces                       On
>   Mac OS X style resource forks                Off
>   Mac OS X Finder information                  Off
> -----------------------------------------------------------------
> Unable to import module xattr.
> Extended attributes not supported on filesystem at 
> /cygdrive/b/chesedrdiff/rdiff
> -backup-data/rdiff-backup.tmp.0
> POSIX ACLs test skipped. rdiff-backup run with --no-acls option.
> Windows ACLs test skipped. rdiff-backup run with --no-acls option.
> -----------------------------------------------------------------
> Detected abilities for destination (read/write) file system:
>   Ownership changing                           Off
>   Hard linking                                 On
>   fsync() directories                          On
>   Directory inc permissions                    On
>   High-bit permissions                         On
>   Symlink permissions                          Off
>   Extended filenames                           On
>   Windows reserved filenames                   On
>   Access control lists                         Off
>   Extended attributes                          Off
>   Windows access control lists                 Off
>   Case sensitivity                             Off
>   Escape DOS devices                           On
>   Escape trailing spaces                       On
>   Mac OS X style resource forks                Off
>   Mac OS X Finder information                  Off
> -----------------------------------------------------------------
> Backup: escape_dos_devices = 0
> Backup: escape_trailing_spaces = 0
> Enabled use_compatible_timestamps
> Reading globbing filelist /cygdrive/c/Users/Tommy/Documents/Backup 
> Scripts/rdiff
> ChesedInclude
> Starting increment operation /cygdrive/c to /cygdrive/b/chesedrdiff
> Processing changed file .
> Incrementing mirror file /cygdrive/b/chesedrdiff
> Exception '[Errno 16] Device or resource busy: 
> '/cygdrive/c/Users/Tommy/Document
> s/Zotero/zotero.sqlite-journal'' raised of class '<type 
> 'exceptions.IOError'>':
>   File "/usr/lib/python2.5/site-packages/rdiff_backup/robust.py", line 32, in 
> ch
> eck_common_error
>     try: return function(*args)
>   File "/usr/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 1174, 
> in o
> pen
>     else: return open(self.path, mode)
> 
> ListError Users/Tommy/Documents/Zotero/zotero.sqlite-journal [Errno 16] 
> Device o
> r resource busy: 
> '/cygdrive/c/Users/Tommy/Documents/Zotero/zotero.sqlite-journal
> '
> Processing changed file Users
> Incrementing mirror file /cygdrive/b/chesedrdiff/Users
> Processing changed file Users/Tommy
> Incrementing mirror file /cygdrive/b/chesedrdiff/Users/Tommy
> Processing changed file Users/Tommy/Documents
> Incrementing mirror file /cygdrive/b/chesedrdiff/Users/Tommy/Documents
> Processing changed file Users/Tommy/Documents/Zotero
> Incrementing mirror file /cygdrive/b/chesedrdiff/Users/Tommy/Documents/Zotero
> Processing changed file Users/Tommy/Documents/Zotero/zotero.sqlite-journal
> Incrementing mirror file 
> /cygdrive/b/chesedrdiff/Users/Tommy/Documents/Zotero/zo
> tero.sqlite-journal
> --------------[ Session statistics ]--------------
> StartTime 1236564685.00 (Sun Mar  8 22:11:25 2009)
> EndTime 1236564695.16 (Sun Mar  8 22:11:35 2009)
> ElapsedTime 10.16 (10.16 seconds)
> SourceFiles 18897
> SourceFileSize 77143226202 (71.8 GB)
> MirrorFiles 18897
> MirrorFileSize 77143226202 (71.8 GB)
> NewFiles 0
> NewFileSize 0 (0 bytes)
> DeletedFiles 0
> DeletedFileSize 0 (0 bytes)
> ChangedFiles 2
> ChangedSourceSize 0 (0 bytes)
> ChangedMirrorSize 0 (0 bytes)
> IncrementFiles 6
> IncrementFileSize 0 (0 bytes)
> TotalDestinationSizeChange 0 (0 bytes)
> Errors 1
> --------------------------------------------------
> 
> ----------------------------------------
>  * Removing backups older than 5 Weeks
> ----------------------------------------
> Fatal Error: Bad directory /cygdrive/b/chesedrdiff.
> It doesn't appear to be an rdiff-backup destination dir
> ----------------------------------------
>  * Current Status
> ----------------------------------------
> Fatal Error: Bad directory /cygdrive/b/chesedrdiff.
> It doesn't appear to be an rdiff-backup destination dir
> Backup Complete, press RETURN


+----------------------------------------------------------------------
|This was sent by address@hidden via Backup Central.
|Forward SPAM to address@hidden
+----------------------------------------------------------------------






reply via email to

[Prev in Thread] Current Thread [Next in Thread]