currentDateAndTime
Get the current date and time using the default patternyyMMddHHmmss
.
Returns:
The current date and time formatted according to the default pattern.
Example
currentDateAndTime
Copy files to a subdirectory within the destination directory. If no destination directory is set usingto(String backupDir)
, the files will be copied to simplebackup
.
Parameters:
pattern - The pattern describing the date and time format.
Returns:
The current date and time formatted according to the pattern.
Example
For more information, see the reference
documentation folder in the SimpleBackup repository.