Wednesday, 26 February 2014

Windows Server 2008: File System Size Smaller Than Partition Size

Unable to view additional disk space after using DISKPART.

DISKPART> list volume

DISKPART> select volume ?

where ? is the number of the affected volume.

DISKPART> extend

DISKPART> extend filesystem

The file system size should now match the new partition size.

Backup Exec 2010: Post Command Start Job

To run a job immediately after the completion of another, include the following in the job Pre/Post Commands:

"C:\Program Files\Symantec\Backup Exec\bemcmd.exe" -o1 -j"Job Name"

Robocopy: Copy Directory Structure Preserving Date Modified

Use robocopy to copy a directory structure and preserve the date modified of directories:

robocopy "source" "destination" /B /E /COPYALL /DCOPY:T

eg:

robocopy "D:\Data" "E:\Data" /B /E /COPYALL /DCOPY:T
 
/B :: copy files in Backup mode.
/E :: copy subdirectories, including Empty ones.

/COPYALL :: COPY ALL file info.
/DCOPY:T :: COPY Directory Timestamps.