How to backup all files in my iphone? including the operating system files I want to edit some files in my iphone using ifile/ssh like in this information http://www.ifans.com/forums/threads/how-to-edit-itunes-apps-ipa-files-to-be-installed-on-unsupported-devices.370037/

is there a way to backup all files in my iphone first? including the operating system files
if its possible, i will use it to restore all files if the iphone crashed later
I am not sure, but I think you can still back up your iPhone with iTunes/iCloud even if it is jail broken. If you really want to back up iPhone as much as iPhone data without iTunes/iCloud there are paid/free third-party methods to do so.