Skip to content

garenyondem/backup-file-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Backup File (Go)

Copies source file to destination directory and archives it with a date as a name.

Usage

go build main.go

Then pass source and destination arguments respectively to binary file.

macOS and Linux

./main /Users/garenyondem/desktop/preciousFile.txt /Users/BackupFolder

Windows

main.exe "C:\Users\%username%\Desktop\preciousFile.txt" "E:\BackupFolder"