User Tools

Site Tools


move_old_files

This is an old revision of the document!


get-childitem -Path "C:\Program Files\Microsoft SQL Server\MSSQL12.PRODUCCION\MSSQL\Backup" -Recurse |
    where-object {$_.LastWriteTime -lt (get-date).AddDays(-15)} | 
    move-item -destination "\\pc0909\d$\Backups (no compartida)\BCCSRV08"
move_old_files.1642106291.txt.gz · Last modified: 2024/10/17 21:42 (external edit)