์นดํ…Œ๊ณ ๋ฆฌ ์—†์Œ

ใ„ด

Network History๐ŸŒ Last Updated: 2026. 6. 21. 09:37

$bucket = "smartoffice-backup-yh-20260619-377152274533-ap-northeast-2-an"
$stamp = Get-Date -Format "yyyyMMdd-HHmmss"
$source = "C:\SmartOffice_Backup"
$dest = "s3://$bucket/vm-backup-history/$stamp/"

Add-Content C:\SmartOffice_Backup\syslog_backup_sample.log "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') INFO Timestamp backup test - $stamp"

aws s3 sync $source $dest --profile smartoffice

aws s3 ls "s3://$bucket/vm-backup-history/" --profile smartoffice
aws s3 ls $dest --profile smartoffice