0 votes
Carlyle Theas by Carlyle Theas (11.2k points)
edited by Carlyle Theas
I'd like to have the option to automatically backup my wardrobe - it can be as simple as checking every 24 hours to see if anything has changed in the wardrobe, and if so sending an automatic email to an email address I provide with the Backup ZIP as an attachment.

(Suggestion by Felina Starflare)

1 Answer

0 votes
Carlyle Theas by Carlyle Theas (11.2k points)

There will not be a feature that will send a backup to your email, but you can set up your computer to create regular backups automatically:

On Windows (Using Task Scheduler and PowerShell)

  1. Open Task Scheduler → Click "Create Basic Task..."
  2. Name the task (e.g., "Weekly Wardrobe Backup")
  3. Trigger: Select "Weekly", then choose the day and time.
  4. Action: Choose "Start a Program" and set:
    • Program/script: powershell
    • Add arguments:
    • Invoke-WebRequest -Uri "https://carlyletheassolutions.com/wardrobe/wardrobedownload.php?owner=YOUR_UUID&t=YOUR_TOKEN" -OutFile "C:\path\to\save\backup.zip"
  5. Change "C:\path\to\save\file.zip" to your preferred location.
  6. Finish and enable the task.
On Mac/Linux (Using cron and curl)
  1. Open the terminal and type:
    • crontab -e
  2. Add a new line at the bottom to schedule the download. For example, to download the file every Monday at 3 AM:
    • 0 3 * * 1 curl -o /path/to/save/backup.zip "https://carlyletheassolutions.com/wardrobe/wardrobedownload.php?owner=YOUR_UUID&t=YOUR_TOKEN"
  3. Save and exit. cron will now execute the command every week.
DAVID by DAVID (160 points)
I can create a backup but after impossible to unzip.  how to restore ?
Beloved Valencia by Beloved Valencia (100 points)
edited by Beloved Valencia
The Windows instructions above didn't work for me, so I want to provide what did.  The correct argument that worked for me is:

-Command "Invoke-WebRequest -Uri 'https://carlyletheassolutions.com/wardrobe/wardrobedownload.php?owner=YOUR_UUID&t=YOUR_TOKEN' -OutFile 'C:\YOUR\BACKUP\PATH.zip'"

All of the other steps worked fine. However, the above command will write over your existing backup each time it runs. If you want to create a new backup file each time and keep the old one, you can add a dynamic date to the file name:

-Command "$date = Get-Date -Format 'yyyy-MM-dd'; Invoke-WebRequest -Uri 'https://carlyletheassolutions.com/wardrobe/wardrobedownload.php?owner=YOUR_UUID&t=YOUR_TOKEN' -OutFile ('C:\YOUR\BACKUP\PATH_' + $date + '.zip')"

Be mindful of the parentheses and quotation marks.
...