Commandes
Compress-Archive -Path .\Projet\* -DestinationPath .\Projet.zip
Compress-Archive -Path .\notes.txt -DestinationPath .\Projet.zip -Update
Expand-Archive .\Livraison.zip -DestinationPath .\Livraison -Force
Compress-Archive .\Documents ("D:\Sauvegardes\Documents-{0:yyyy-MM-dd}.zip" -f (Get-Date))
Limites
- Fichiers de plus de 2 Go non pris en charge par Compress-Archive (PowerShell 5) : utilisez tar ou 7-Zip.
- Pas de mot de passe : 7-Zip pour un ZIP/7z chiffré.
Planifier la sauvegarde : schtasks.