Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14180 closed enhancement (not_a_bug)

Backup file encryption

Reported by: Jack dis Owned by:
Priority: normal Milestone: Chaos Calmer 15.05
Component: luci Version: Trunk
Keywords: Cc:


Default backup. Tar.gz files are not encrypted content.
then Modify /sbin/sysupgrade file

do_save_conffiles() {
	local conf_tar="${1:-$CONF_TAR}"

	[ -z "$(rootfs_type)" ] && {
		echo "Cannot save config while running from ramdisk."
		ask_bool 0 "Abort" && exit
		return 0
	run_hooks "$CONFFILES" $sysupgrade_init_conffiles
	ask_bool 0 "Edit config file list" && vi "$CONFFILES"

	v "Saving config files..."
	[ "$VERBOSE" -gt 1 ] && TAR_V="v" || TAR_V=""
	tar c${TAR_V}z -T "$CONFFILES" 2>/dev/null | openssl des3 -salt -k passwd -out "$conf_tar"

#	tar c${TAR_V}zf "$conf_tar" -T "$CONFFILES" 2>/dev/null

	rm -f "$CONFFILES"

backup of luci Exported is 0kb tar.gz file.

Use the command: sysupgrade - create-backup 01.tar.gz is ok.

What do we need to modify in order to get encrypted files under the luci?

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by jow

  • Resolution set to not_a_bug
  • Status changed from new to closed

"$conf_tar" is "-" to signify stdout when called through LuCI. Make sure your openssl hack straems the result to stdout when needed.

Also this is neither a bug report nor a proper ticket. If you have development related questions use the mailing list. Trac is not a support forum.

Last edited 4 years ago by jow (previous) (diff)

comment:2 Changed 4 years ago by anonymous

How to use mailing list ?

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.