Կայքի Collection Backup օգտագործելով PowerShell

PowerShell միշտ տալիս է ադմինիստրատոր զգալու ծրագրավորման, Հիմնականում ես մշակողի ոչ թե, իրոք շատ են, օգտագործելով ընտրանքներ կամ բաժիններում անել այն խնդիրները, ինչպիսիք են կրկնօրինակում (I never used the backup option in Central AdministrationJ)

Եկեք խոսենք այն մասին, պահեստային կայքի հավաքածուի օգտագործելով PowerShell օրինակներով.

Շարահյուսություն:

Backup-SPSite <<Site Collection URL>>

-Path <<File Path>>

[-Force]

[-Confirm]

[-NoSiteLock]

[-UseSqlSnapshot]

Օրինակ 1:

Backup-SPSite http://localhost -Path C:\SiteBackup.bak

Creates the backup of the site collection, the backup file will be stored in C: drive named as SiteBackup.bak

Օրինակ 2:

Backup-SPSite http://localhost -Path C:\SiteBackup.bak -Force

When the job is scheduled to take the daily backup, if the backup file already exists in the specified path, the backup process would be terminated.

Using -Force will enforce overwrite on existing file.

Օրինակ 3:

By default the Bacup-Site command let will set the site collection as read only, while the backup is in progress to avoid updates and/or prevent the backup file from corruption. Using -NoSiteLock switch will not lock the site collection to read only, while backup in progress.

Օրինակ 4:

Switch
UseSqlSnapShot will perform the backup using snapshots, this switch will work only with Enterprise Edition.

Թողնել Պատասխանել

Դուք կարող եք օգտվել Այս HTML-թեգերը

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>