Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

File Backup Question...

  • 24-01-2009 8:34pm
    #1
    Registered Users, Registered Users 2 Posts: 40


    Hi all,

    I recentely wrote a simple batch script to backup certain folders from my C:\ drive onto my external hard drive.

    It works grand except for one thing - TrueCrypt. As you may/may not know, whenever you create a TrueCrypt volume you choose the size. The size of the volume will not change no matter how many files you add to this volume. Also, under properties, it will be last modified on the date the volume was created.

    My problem is that even if I add new info to the files in the TrueCrypt volume, it will not register as being modified and therefore will not be copied to my external HDD.

    Is there anyway to make the file automatically overwrite every time I run the script? Thanks in advance.

    Here's a copy of the script (TrueCrypt volume marked in red):
    @echo off
    :: variables
    set drive=F:\Backup
    set backupcmd=xcopy /s /c /d /e /h /i /r /y

    echo ### Backing up Screenshots...
    %backupcmd% "%USERPROFILE%\My Documents\Screenshots" "%drive%\My Documents\Screenshots"

    echo ### Backing up Documents...
    %backupcmd% "%USERPROFILE%\My Documents\Documents" "%drive%\My Documents\Documents"

    echo ### Backing up Project Files...
    %backupcmd% "C:\WesternDigital\*.*" "%drive%\My Documents\Documents"


    echo ### Backing up Installation Files...
    %backupcmd% "%USERPROFILE%\My Documents\Installation Files" "%drive%\My Documents\Installation Files"

    echo ### Backing up School Work...
    %backupcmd% "%USERPROFILE%\My Documents\School" "%drive%\My Documents\School Work"

    echo ### Backing up Notepad Files...
    %backupcmd% "%USERPROFILE%\My Documents\Notepad Files" "%drive%\My Documents\Notepad Files"

    echo ### Backing up Windows Live Contacts...
    %backupcmd% "%USERPROFILE%\Local Settings\Application Data\Microsoft\Windows Live Contacts" "%drive%\Windows Live\Contacts"

    echo ### Backing up Windows Live Mail...
    %backupcmd% "%USERPROFILE%\Local Settings\Application Data\Microsoft\Windows Live Mail" "%drive%\Windows Live\Mail"

    echo ### Backing up Firefox...
    %backupcmd% "%USERPROFILE%\Application Data\Mozilla\Firefox" "%drive%\Firefox"

    echo Backup Complete!
    @pause

    -Matt


Comments

  • Registered Users, Registered Users 2 Posts: 1,562 ✭✭✭cance


    Have you tried robocopy?

    I don't fully understand your problem. Is it that the files don't appear different and they don't get updated?

    If so use a standard copy instead a syncronous copy, I'll sit down on a pc tomorrow and have a quick look.


  • Closed Accounts Posts: 64 ✭✭mykro28


    I use Cobian backup 9 and you can make it run a full backup, I think you can specify specific files to leave out of the incremental. You could run two jobs, one a inc of your full file system and then a "full backup" of your truecrypt volume.
    It is free BTW and really good....:)


Advertisement