Skip to content

Instantly share code, notes, and snippets.

@FirePanther
Created April 11, 2015 23:45
Show Gist options
  • Save FirePanther/e28fe7aff49d4c3e18c5 to your computer and use it in GitHub Desktop.
Save FirePanther/e28fe7aff49d4c3e18c5 to your computer and use it in GitHub Desktop.
Backup Cydia package list and sources
#!/bin/bash
cd /User/Documents/FireCloud/BackUp
git push origin master
#!/bin/bash
cd /User/Documents/FireCloud/BackUp
# cydia packages
cat /var/lib/dpkg/status | grep Package: | awk -F: '{print $2}' | sort > Packages.txt
# cydia sources
cat /etc/apt/sources.list.d/cydia.list > Sources.txt
# git
git add .
git commit -m "auto backup"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>pro.firepanther.backup-push</string>
<key>ProgramArguments</key>
<array>
<string>/User/Documents/FireCloud/cron/backup-push.sh</string>
</array>
<key>Nice</key>
<integer>20</integer>
<key>StartInterval</key>
<integer>86400</integer>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>pro.firepanther.backup</string>
<key>ProgramArguments</key>
<array>
<string>/User/Documents/FireCloud/cron/backup.sh</string>
</array>
<key>Nice</key>
<integer>20</integer>
<key>StartInterval</key>
<integer>10800</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment