Created
April 11, 2015 23:45
-
-
Save FirePanther/e28fe7aff49d4c3e18c5 to your computer and use it in GitHub Desktop.
Backup Cydia package list and sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /User/Documents/FireCloud/BackUp | |
git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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